1 #ifndef PHP_SOCKADR_CONV_H
2 #define PHP_SOCKADR_CONV_H
3
4 #include <php_network.h>
5 #include "php_sockets.h"
6
7 #ifndef PHP_WIN32
8 # include <netinet/in.h>
9 #else
10 # include <Winsock2.h>
11 #endif
12
13
14
15
16
17
18
19 int php_set_inet6_addr(struct sockaddr_in6 *sin6, char *string, php_socket *php_sock);
20
21
22
23
24 int php_set_inet_addr(struct sockaddr_in *sin, char *string, php_socket *php_sock);
25
26
27
28
29 int php_set_inet46_addr(php_sockaddr_storage *ss, socklen_t *ss_len, char *string, php_socket *php_sock);
30
31 #endif