Home
last modified time | relevance | path

Searched refs:php_sock (Results 1 – 7 of 7) sorted by relevance

/PHP-7.1/ext/sockets/
H A Dsockets.c402 php_sock->error = 0; in php_create_socket()
406 return php_sock; in php_create_socket()
421 efree(php_sock); in php_destroy_socket()
431 *php_sock = sock;
788 php_socket *php_sock; local
812 php_socket *php_sock; local
937 php_sock->error = 0;
1376 efree(php_sock);
1400 efree(php_sock);
1404 php_sock->error = 0;
[all …]
H A Dsockaddr_conv.c16 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 Dsockaddr_conv.h19 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 Dsendrecvmsg.c171 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()
205 PHP_SOCKET_ERROR(php_sock, "error in sendmsg", errno); in PHP_FUNCTION()
215 php_socket *php_sock; in PHP_FUNCTION() local
229 if ((php_sock = (php_socket *)zend_fetch_resource(Z_RES_P(zsocket), in PHP_FUNCTION()
242 res = recvmsg(php_sock->bsd_socket, msghdr, (int)flags); in PHP_FUNCTION()
361 retval = setsockopt(php_sock->bsd_socket, level, optname, opt_ptr, optlen); in php_do_setsockopt_ipv6_rfc3542()
363 PHP_SOCKET_ERROR(php_sock, "unable to set socket option", errno); in php_do_setsockopt_ipv6_rfc3542()
392 res = getsockopt(php_sock->bsd_socket, level, optname, buffer, &size); in php_do_getsockopt_ipv6_rfc3542()
[all …]
H A Dmulticast.c176 if (php_get_address_from_array(opt_ht, "group", php_sock, &group, in php_do_mcast_opt()
180 if (php_get_if_index_from_array(opt_ht, "interface", php_sock, in php_do_mcast_opt()
185 retval = mcast_req_fun(php_sock, level, (struct sockaddr*)&group, in php_do_mcast_opt()
220 if (php_get_if_index_from_array(opt_ht, "interface", php_sock, in php_do_mcast_opt()
246 int php_do_setsockopt_ip_mcast(php_socket *php_sock, in php_do_setsockopt_ip_mcast() argument
316 int php_do_setsockopt_ipv6_mcast(php_socket *php_sock, in php_do_setsockopt_ipv6_mcast() argument
638 (void) php_sock; /* not necessary */ in php_if_index_to_addr4()
678 (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 Dmulticast.h48 int php_do_setsockopt_ip_mcast(php_socket *php_sock,
53 int php_do_setsockopt_ipv6_mcast(php_socket *php_sock,
60 php_socket *php_sock,
65 php_socket *php_sock,
H A Dsendrecvmsg.h15 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 18 milliseconds