Lines Matching refs:ops

625 	if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) {  in php_tcp_sockop_bind()
628 …sock->socket = socket(PF_UNIX, stream->ops == &php_stream_unix_socket_ops ? SOCK_STREAM : SOCK_DGR… in php_tcp_sockop_bind()
633 stream->ops == &php_stream_unix_socket_ops ? "" : "datagram", in php_tcp_sockop_bind()
672 if (stream->ops == &php_stream_udp_socket_ops /* SO_BROADCAST is only applicable for UDP */ in php_tcp_sockop_bind()
682 stream->ops == &php_stream_udp_socket_ops ? SOCK_DGRAM : SOCK_STREAM, in php_tcp_sockop_bind()
706 if (stream->ops == &php_stream_unix_socket_ops || stream->ops == &php_stream_unixdg_socket_ops) { in php_tcp_sockop_connect()
709 …sock->socket = socket(PF_UNIX, stream->ops == &php_stream_unix_socket_ops ? SOCK_STREAM : SOCK_DGR… in php_tcp_sockop_connect()
750 if (stream->ops == &php_stream_udp_socket_ops /* SO_BROADCAST is only applicable for UDP */ in php_tcp_sockop_connect()
759 if (stream->ops != &php_stream_udp_socket_ops /* TCP_NODELAY is only applicable for TCP */ in php_tcp_sockop_connect()
761 && stream->ops != &php_stream_unix_socket_ops in php_tcp_sockop_connect()
762 && stream->ops != &php_stream_unixdg_socket_ops in php_tcp_sockop_connect()
776 stream->ops == &php_stream_udp_socket_ops ? SOCK_DGRAM : SOCK_STREAM, in php_tcp_sockop_connect()
838 xparam->outputs.client = php_stream_alloc_rel(stream->ops, clisockdata, NULL, "r+"); in php_tcp_sockop_accept()
890 const php_stream_ops *ops; in php_stream_generic_socket_factory() local
894 ops = &php_stream_socket_ops; in php_stream_generic_socket_factory()
896 ops = &php_stream_udp_socket_ops; in php_stream_generic_socket_factory()
900 ops = &php_stream_unix_socket_ops; in php_stream_generic_socket_factory()
902 ops = &php_stream_unixdg_socket_ops; in php_stream_generic_socket_factory()
921 stream = php_stream_alloc_rel(ops, sock, persistent_id, "r+"); in php_stream_generic_socket_factory()