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()
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()
234 msghdr = from_zval_run_conversions(zmsg, php_sock, from_zval_write_msghdr_recv, in PHP_FUNCTION()
242 res = recvmsg(php_sock->bsd_socket, msghdr, (int)flags); in PHP_FUNCTION()
319 int php_do_setsockopt_ipv6_rfc3542(php_socket *php_sock, int level, int optname, zval *arg4) in php_do_setsockopt_ipv6_rfc3542() argument
344 opt_ptr = from_zval_run_conversions(arg4, php_sock, from_zval_write_in6_pktinfo, in php_do_setsockopt_ipv6_rfc3542()
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()
370 int php_do_getsockopt_ipv6_rfc3542(php_socket *php_sock, int level, int optname, zval *result) in php_do_getsockopt_ipv6_rfc3542() argument
392 res = getsockopt(php_sock->bsd_socket, level, optname, buffer, &size); in php_do_getsockopt_ipv6_rfc3542()
394 PHP_SOCKET_ERROR(php_sock, "unable to get socket option", errno); in php_do_getsockopt_ipv6_rfc3542()