Lines Matching refs:php_sock

183 	php_socket		*php_sock;  in PHP_FUNCTION()  local
196 php_sock = Z_SOCKET_P(zsocket); in PHP_FUNCTION()
197 ENSURE_SOCKET_VALID(php_sock); in PHP_FUNCTION()
199 msghdr = from_zval_run_conversions(zmsg, php_sock, from_zval_write_msghdr_send, in PHP_FUNCTION()
207 res = sendmsg(php_sock->bsd_socket, msghdr, (int)flags); in PHP_FUNCTION()
212 PHP_SOCKET_ERROR(php_sock, "Error in sendmsg", errno); in PHP_FUNCTION()
224 php_socket *php_sock; in PHP_FUNCTION() local
237 php_sock = Z_SOCKET_P(zsocket); in PHP_FUNCTION()
238 ENSURE_SOCKET_VALID(php_sock); in PHP_FUNCTION()
240 msghdr = from_zval_run_conversions(zmsg, php_sock, from_zval_write_msghdr_recv, in PHP_FUNCTION()
248 res = recvmsg(php_sock->bsd_socket, msghdr, (int)flags); in PHP_FUNCTION()
330 int php_do_setsockopt_ipv6_rfc3542(php_socket *php_sock, int level, int optname, zval *arg4) in php_do_setsockopt_ipv6_rfc3542() argument
355 opt_ptr = from_zval_run_conversions(arg4, php_sock, from_zval_write_in6_pktinfo, in php_do_setsockopt_ipv6_rfc3542()
372 retval = setsockopt(php_sock->bsd_socket, level, optname, opt_ptr, optlen); in php_do_setsockopt_ipv6_rfc3542()
374 PHP_SOCKET_ERROR(php_sock, "Unable to set socket option", errno); in php_do_setsockopt_ipv6_rfc3542()
381 int php_do_getsockopt_ipv6_rfc3542(php_socket *php_sock, int level, int optname, zval *result) in php_do_getsockopt_ipv6_rfc3542() argument
403 res = getsockopt(php_sock->bsd_socket, level, optname, buffer, &size); in php_do_getsockopt_ipv6_rfc3542()
405 PHP_SOCKET_ERROR(php_sock, "unable to get socket option", errno); in php_do_getsockopt_ipv6_rfc3542()