Lines Matching refs:php_sock

169 	php_socket		*php_sock;  in PHP_FUNCTION()  local
182 ZEND_FETCH_RESOURCE(php_sock, php_socket *, &zsocket, -1, in PHP_FUNCTION()
185 msghdr = from_zval_run_conversions(zmsg, php_sock, from_zval_write_msghdr_send, in PHP_FUNCTION()
193 res = sendmsg(php_sock->bsd_socket, msghdr, (int)flags); in PHP_FUNCTION()
201 PHP_SOCKET_ERROR(php_sock, "error in sendmsg", errno); in PHP_FUNCTION()
211 php_socket *php_sock; in PHP_FUNCTION() local
225 ZEND_FETCH_RESOURCE(php_sock, php_socket *, &zsocket, -1, in PHP_FUNCTION()
228 msghdr = from_zval_run_conversions(zmsg, php_sock, from_zval_write_msghdr_recv, in PHP_FUNCTION()
236 res = recvmsg(php_sock->bsd_socket, msghdr, (int)flags); in PHP_FUNCTION()
314 int php_do_setsockopt_ipv6_rfc3542(php_socket *php_sock, int level, int optname, zval **arg4 TSRMLS… in php_do_setsockopt_ipv6_rfc3542() argument
339 opt_ptr = from_zval_run_conversions(*arg4, php_sock, from_zval_write_in6_pktinfo, in php_do_setsockopt_ipv6_rfc3542()
356 retval = setsockopt(php_sock->bsd_socket, level, optname, opt_ptr, optlen); in php_do_setsockopt_ipv6_rfc3542()
358 PHP_SOCKET_ERROR(php_sock, "unable to set socket option", errno); in php_do_setsockopt_ipv6_rfc3542()
365 int php_do_getsockopt_ipv6_rfc3542(php_socket *php_sock, int level, int optname, zval *result TSRML… in php_do_getsockopt_ipv6_rfc3542() argument
387 res = getsockopt(php_sock->bsd_socket, level, optname, buffer, &size); in php_do_getsockopt_ipv6_rfc3542()
389 PHP_SOCKET_ERROR(php_sock, "unable to get socket option", errno); in php_do_getsockopt_ipv6_rfc3542()