socket_import_stream(3) php man page | unix.com

Man Page: socket_import_stream

Operating Environment: php

Section: 3

SOCKET_IMPORT_STREAM(3) 						 1						   SOCKET_IMPORT_STREAM(3)

socket_import_stream - Import a stream

SYNOPSIS
resource socket_import_stream (resource $stream)
DESCRIPTION
Imports a stream that encapsulates a socket into a socket extension resource.
PARAMETERS
o $stream - The stream resource to import.
RETURN VALUES
Returns FALSE or NULL on failure.
EXAMPLES
Example #1 socket_import_stream(3) example <?php $stream = stream_socket_server("udp://0.0.0.0:58380", $errno, $errstr, STREAM_SERVER_BIND); $sock = socket_import_stream($stream); ?>
SEE ALSO
stream_socket_server(3). PHP Documentation Group SOCKET_IMPORT_STREAM(3)
Related Man Pages
stream_get_contents(3) - php
stream_filter_prepend(3) - php
stream_filter_remove(3) - php
stream_socket_recvfrom(3) - php
stream_socket_shutdown(3) - php
Similar Topics in the Unix Linux Community
Rules for Homework &amp; Coursework Questions Forum
Forum Video Tutorial: How to Use Code Tags
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch