Lines Matching refs:php_sock
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()
189 msghdr = from_zval_run_conversions(zmsg, php_sock, from_zval_write_msghdr_send, 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()
233 msghdr = from_zval_run_conversions(zmsg, php_sock, from_zval_write_msghdr_recv, in PHP_FUNCTION()
241 res = recvmsg(php_sock->bsd_socket, msghdr, (int)flags); in PHP_FUNCTION()
318 int php_do_setsockopt_ipv6_rfc3542(php_socket *php_sock, int level, int optname, zval *arg4) in php_do_setsockopt_ipv6_rfc3542() argument
343 opt_ptr = from_zval_run_conversions(arg4, php_sock, from_zval_write_in6_pktinfo, in php_do_setsockopt_ipv6_rfc3542()
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()
369 int php_do_getsockopt_ipv6_rfc3542(php_socket *php_sock, int level, int optname, zval *result) in php_do_getsockopt_ipv6_rfc3542() argument
391 res = getsockopt(php_sock->bsd_socket, level, optname, buffer, &size); in php_do_getsockopt_ipv6_rfc3542()
393 PHP_SOCKET_ERROR(php_sock, "unable to get socket option", errno); in php_do_getsockopt_ipv6_rfc3542()