Searched refs:php_sock (Results 1 – 8 of 8) sorted by relevance
/PHP-8.1/ext/sockets/ |
H A D | sockets.c | 656 php_socket *php_sock; local 690 php_socket *php_sock; local 810 php_socket *php_sock; local 825 php_sock->error = 0; 859 php_socket *php_sock; local 895 php_socket *php_sock; local 933 php_socket *php_sock; local 989 php_socket *php_sock; local 1276 php_sock->error = 0; 2437 php_sock->error = 0; [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) /* {{{ */ argument 102 PHP_SOCKET_ERROR(php_sock, "Host lookup failed", WSAGetLastError()); 104 PHP_SOCKET_ERROR(php_sock, "Host lookup failed", (-10000 - h_errno)); 121 …t46_addr(php_sockaddr_storage *ss, socklen_t *ss_len, char *string, php_socket *php_sock) /* {{{ */ argument 123 if (php_sock->type == AF_INET) { 125 if (php_set_inet_addr(&t, string, php_sock)) { 133 else if (php_sock->type == AF_INET6) { [all …]
|
H A D | sendrecvmsg.c | 177 php_socket *php_sock; in PHP_FUNCTION() local 190 php_sock = Z_SOCKET_P(zsocket); in PHP_FUNCTION() 191 ENSURE_SOCKET_VALID(php_sock); in PHP_FUNCTION() 201 res = sendmsg(php_sock->bsd_socket, msghdr, (int)flags); in PHP_FUNCTION() 206 PHP_SOCKET_ERROR(php_sock, "Error in sendmsg", errno); in PHP_FUNCTION() 218 php_socket *php_sock; in PHP_FUNCTION() local 231 php_sock = Z_SOCKET_P(zsocket); in PHP_FUNCTION() 232 ENSURE_SOCKET_VALID(php_sock); in PHP_FUNCTION() 242 res = recvmsg(php_sock->bsd_socket, msghdr, (int)flags); in PHP_FUNCTION() 368 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() 669 (void) php_sock; /* not necessary */ in php_add4_to_if_index() 727 if (ioctl(php_sock->bsd_socket, SIOCGIFNAME, &if_req) == -1) { 738 if (ioctl(php_sock->bsd_socket, SIOCGIFADDR, &if_req) == -1) { [all …]
|
H A D | multicast.h | 44 int php_do_setsockopt_ip_mcast(php_socket *php_sock, 49 int php_do_setsockopt_ipv6_mcast(php_socket *php_sock, 56 php_socket *php_sock, 61 php_socket *php_sock,
|
H A D | sendrecvmsg.h | 15 int php_do_setsockopt_ipv6_rfc3542(php_socket *php_sock, int level, int optname, zval *arg4); 16 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 39 milliseconds