Searched refs:php_sock (Results 1 – 7 of 7) sorted by relevance
/PHP-7.3/ext/sockets/ |
H A D | sockets.c | 460 return php_sock; in php_create_socket() 475 efree(php_sock); in php_destroy_socket() 496 *php_sock = sock; 1474 efree(php_sock); 1498 efree(php_sock); 2659 efree(php_sock); 2686 efree(php_sock); 2693 efree(php_sock); 2725 efree(php_sock); 2752 efree(php_sock); [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() 85 int php_set_inet_addr(struct sockaddr_in *sin, char *string, php_socket *php_sock) /* {{{ */ in php_set_inet_addr() argument 96 PHP_SOCKET_ERROR(php_sock, "Host lookup failed", WSAGetLastError()); in php_set_inet_addr() 98 PHP_SOCKET_ERROR(php_sock, "Host lookup failed", (-10000 - h_errno)); in php_set_inet_addr() 115 …t46_addr(php_sockaddr_storage *ss, socklen_t *ss_len, char *string, php_socket *php_sock) /* {{{ */ in php_set_inet46_addr() argument 117 if (php_sock->type == AF_INET) { in php_set_inet46_addr() 119 if (php_set_inet_addr(&t, string, php_sock)) { in php_set_inet46_addr() 127 else if (php_sock->type == AF_INET6) { in php_set_inet46_addr() [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 | sendrecvmsg.c | 171 php_socket *php_sock; in PHP_FUNCTION() local 184 if ((php_sock = (php_socket *)zend_fetch_resource(Z_RES_P(zsocket), in PHP_FUNCTION() 197 res = sendmsg(php_sock->bsd_socket, msghdr, (int)flags); in PHP_FUNCTION() 202 PHP_SOCKET_ERROR(php_sock, "error in sendmsg", errno); in PHP_FUNCTION() 214 php_socket *php_sock; in PHP_FUNCTION() local 228 if ((php_sock = (php_socket *)zend_fetch_resource(Z_RES_P(zsocket), in PHP_FUNCTION() 241 res = recvmsg(php_sock->bsd_socket, msghdr, (int)flags); in PHP_FUNCTION() 360 retval = setsockopt(php_sock->bsd_socket, level, optname, opt_ptr, optlen); in php_do_setsockopt_ipv6_rfc3542() 362 PHP_SOCKET_ERROR(php_sock, "unable to set socket option", errno); in php_do_setsockopt_ipv6_rfc3542() 391 res = getsockopt(php_sock->bsd_socket, level, optname, buffer, &size); in php_do_getsockopt_ipv6_rfc3542() [all …]
|
H A D | multicast.c | 170 if (php_get_address_from_array(opt_ht, "group", php_sock, &group, in php_do_mcast_opt() 174 if (php_get_if_index_from_array(opt_ht, "interface", php_sock, in php_do_mcast_opt() 179 retval = mcast_req_fun(php_sock, level, (struct sockaddr*)&group, in php_do_mcast_opt() 214 if (php_get_if_index_from_array(opt_ht, "interface", php_sock, in php_do_mcast_opt() 240 int php_do_setsockopt_ip_mcast(php_socket *php_sock, in php_do_setsockopt_ip_mcast() argument 310 int php_do_setsockopt_ipv6_mcast(php_socket *php_sock, in php_do_setsockopt_ipv6_mcast() argument 632 (void) php_sock; /* not necessary */ in php_if_index_to_addr4() 675 (void) php_sock; /* not necessary */ in php_add4_to_if_index() 733 if (ioctl(php_sock->bsd_socket, SIOCGIFNAME, &if_req) == -1) { 744 if (ioctl(php_sock->bsd_socket, SIOCGIFADDR, &if_req) == -1) { [all …]
|
H A D | multicast.h | 46 int php_do_setsockopt_ip_mcast(php_socket *php_sock, 51 int php_do_setsockopt_ipv6_mcast(php_socket *php_sock, 58 php_socket *php_sock, 63 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);
|
Completed in 26 milliseconds