Searched refs:php_sock (Results 1 – 8 of 8) sorted by relevance
/php-src/ext/sockets/ |
H A D | sockets.c | 519 php_socket *php_sock; local 553 php_socket *php_sock; local 674 php_socket *php_sock; local 691 php_sock->error = 0; 725 php_socket *php_sock; local 761 php_socket *php_sock; local 799 php_socket *php_sock; local 857 php_socket *php_sock; local 902 php_socket *php_sock; local 1104 php_socket *php_sock; local [all …]
|
H A D | sockaddr_conv.c | 16 int php_set_inet6_addr(struct sockaddr_in6 *sin6, char *string, php_socket *php_sock) /* {{{ */ in php_set_inet6_addr() argument 40 PHP_SOCKET_ERROR(php_sock, "Host lookup failed", WSAGetLastError()); in php_set_inet6_addr() 42 PHP_SOCKET_ERROR(php_sock, "Host lookup failed", (-10000 - h_errno)); in php_set_inet6_addr() 87 int php_set_inet_addr(struct sockaddr_in *sin, char *string, php_socket *php_sock) /* {{{ */ in php_set_inet_addr() argument 98 PHP_SOCKET_ERROR(php_sock, "Host lookup failed", WSAGetLastError()); in php_set_inet_addr() 100 PHP_SOCKET_ERROR(php_sock, "Host lookup failed", (-10000 - h_errno)); in php_set_inet_addr() 117 …t46_addr(php_sockaddr_storage *ss, socklen_t *ss_len, char *string, php_socket *php_sock) /* {{{ */ in php_set_inet46_addr() argument 119 if (php_sock->type == AF_INET) { in php_set_inet46_addr() 121 if (php_set_inet_addr(&t, string, php_sock)) { in php_set_inet46_addr() 129 else if (php_sock->type == AF_INET6) { in php_set_inet46_addr() [all …]
|
H A D | sendrecvmsg.c | 183 php_socket *php_sock; in PHP_FUNCTION() local 196 php_sock = Z_SOCKET_P(zsocket); in PHP_FUNCTION() 197 ENSURE_SOCKET_VALID(php_sock); in PHP_FUNCTION() 207 res = sendmsg(php_sock->bsd_socket, msghdr, (int)flags); in PHP_FUNCTION() 212 PHP_SOCKET_ERROR(php_sock, "Error in sendmsg", errno); in PHP_FUNCTION() 224 php_socket *php_sock; in PHP_FUNCTION() local 237 php_sock = Z_SOCKET_P(zsocket); in PHP_FUNCTION() 238 ENSURE_SOCKET_VALID(php_sock); in PHP_FUNCTION() 248 res = recvmsg(php_sock->bsd_socket, msghdr, (int)flags); in PHP_FUNCTION() 374 PHP_SOCKET_ERROR(php_sock, "Unable to set socket option", errno); in php_do_setsockopt_ipv6_rfc3542() [all …]
|
H A D | sockaddr_conv.h | 19 int php_set_inet6_addr(struct sockaddr_in6 *sin6, char *string, php_socket *php_sock); 24 int php_set_inet_addr(struct sockaddr_in *sin, char *string, php_socket *php_sock); 29 …p_set_inet46_addr(php_sockaddr_storage *ss, socklen_t *ss_len, char *string, php_socket *php_sock);
|
H A D | multicast.c | 165 if (php_get_address_from_array(opt_ht, "group", php_sock, &group, in php_do_mcast_opt() 169 if (php_get_if_index_from_array(opt_ht, "interface", php_sock, in php_do_mcast_opt() 174 retval = mcast_req_fun(php_sock, level, (struct sockaddr*)&group, in php_do_mcast_opt() 209 if (php_get_if_index_from_array(opt_ht, "interface", php_sock, in php_do_mcast_opt() 235 int php_do_setsockopt_ip_mcast(php_socket *php_sock, in php_do_setsockopt_ip_mcast() argument 304 int php_do_setsockopt_ipv6_mcast(php_socket *php_sock, in php_do_setsockopt_ipv6_mcast() argument 626 (void) php_sock; /* not necessary */ in php_if_index_to_addr4() 668 (void) php_sock; /* not necessary */ in php_add4_to_if_index() 725 if (ioctl(php_sock->bsd_socket, SIOCGIFNAME, &if_req) == -1) { 736 if (ioctl(php_sock->bsd_socket, SIOCGIFADDR, &if_req) == -1) { [all …]
|
H A D | multicast.h | 45 int php_do_setsockopt_ip_mcast(php_socket *php_sock, 50 int php_do_setsockopt_ipv6_mcast(php_socket *php_sock, 57 php_socket *php_sock, 62 php_socket *php_sock,
|
H A D | sendrecvmsg.h | 17 int php_do_setsockopt_ipv6_rfc3542(php_socket *php_sock, int level, int optname, zval *arg4); 18 int php_do_getsockopt_ipv6_rfc3542(php_socket *php_sock, int level, int optname, zval *result);
|
H A D | php_sockets.h | 86 #define ENSURE_SOCKET_VALID(php_sock) do { \ argument 87 if (IS_INVALID_SOCKET(php_sock)) { \
|
Completed in 30 milliseconds