NetworkSocket

Primary socket implementation.

Extends
Icicle\Stream\Pipe\DuplexPipe
Implements
Icicle\Socket\Socket

__construct()

new NetworkSocket(resource $socket, bool $autoClose = true)

Creates a socket object from the given stream socket resource.

Parameters

$socket
Stream socket resource.
$autoClose
True to close the resource on destruct, false to leave it open.
Next: Server\BasicServer