Lines Matching refs:php_sock

177 	php_socket		*php_sock;  in PHP_FUNCTION()  local
190 php_sock = Z_SOCKET_P(zsocket); in PHP_FUNCTION()
191 ENSURE_SOCKET_VALID(php_sock); in PHP_FUNCTION()
193 msghdr = from_zval_run_conversions(zmsg, php_sock, from_zval_write_msghdr_send, in PHP_FUNCTION()
201 res = sendmsg(php_sock->bsd_socket, msghdr, (int)flags); in PHP_FUNCTION()
206 PHP_SOCKET_ERROR(php_sock, "Error in sendmsg", errno); in PHP_FUNCTION()
218 php_socket *php_sock; in PHP_FUNCTION() local
231 php_sock = Z_SOCKET_P(zsocket); in PHP_FUNCTION()
232 ENSURE_SOCKET_VALID(php_sock); 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()
324 int php_do_setsockopt_ipv6_rfc3542(php_socket *php_sock, int level, int optname, zval *arg4) in php_do_setsockopt_ipv6_rfc3542() argument
349 opt_ptr = from_zval_run_conversions(arg4, php_sock, from_zval_write_in6_pktinfo, in php_do_setsockopt_ipv6_rfc3542()
366 retval = setsockopt(php_sock->bsd_socket, level, optname, opt_ptr, optlen); in php_do_setsockopt_ipv6_rfc3542()
368 PHP_SOCKET_ERROR(php_sock, "Unable to set socket option", errno); in php_do_setsockopt_ipv6_rfc3542()
375 int php_do_getsockopt_ipv6_rfc3542(php_socket *php_sock, int level, int optname, zval *result) in php_do_getsockopt_ipv6_rfc3542() argument
397 res = getsockopt(php_sock->bsd_socket, level, optname, buffer, &size); in php_do_getsockopt_ipv6_rfc3542()
399 PHP_SOCKET_ERROR(php_sock, "unable to get socket option", errno); in php_do_getsockopt_ipv6_rfc3542()