Query: socket_import_stream
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SOCKET_IMPORT_STREAM(3) 1 SOCKET_IMPORT_STREAM(3) socket_import_stream - Import a streamSYNOPSISresource socket_import_stream (resource $stream)DESCRIPTIONImports a stream that encapsulates a socket into a socket extension resource.PARAMETERSo $stream - The stream resource to import.RETURN VALUESReturns FALSE or NULL on failure.EXAMPLESExample #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 ALSOstream_socket_server(3). PHP Documentation Group SOCKET_IMPORT_STREAM(3)