Lines Matching refs:ops
575 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) { in php_tcp_sockop_bind()
578 …sock->socket = socket(PF_UNIX, stream->ops == &php_stream_unix_socket_ops ? SOCK_STREAM : SOCK_DGR… in php_tcp_sockop_bind()
583 stream->ops == &php_stream_unix_socket_ops ? "" : "datagram", in php_tcp_sockop_bind()
603 stream->ops == &php_stream_udp_socket_ops ? SOCK_DGRAM : SOCK_STREAM, in php_tcp_sockop_bind()
625 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) { in php_tcp_sockop_connect()
628 …sock->socket = socket(PF_UNIX, stream->ops == &php_stream_unix_socket_ops ? SOCK_STREAM : SOCK_DGR… in php_tcp_sockop_connect()
673 stream->ops == &php_stream_udp_socket_ops ? SOCK_DGRAM : SOCK_STREAM, in php_tcp_sockop_connect()
733 xparam->outputs.client = php_stream_alloc_rel(stream->ops, clisockdata, NULL, "r+"); in php_tcp_sockop_accept()
786 php_stream_ops *ops; in php_stream_generic_socket_factory() local
790 ops = &php_stream_socket_ops; in php_stream_generic_socket_factory()
792 ops = &php_stream_udp_socket_ops; in php_stream_generic_socket_factory()
796 ops = &php_stream_unix_socket_ops; in php_stream_generic_socket_factory()
798 ops = &php_stream_unixdg_socket_ops; in php_stream_generic_socket_factory()
817 stream = php_stream_alloc_rel(ops, sock, persistent_id, "r+"); in php_stream_generic_socket_factory()