Property | Type | Description | |
---|---|---|---|
$open | boolean | ||
$paused | boolean | ||
$socket | resource |
Method | Description | |
---|---|---|
__construct ( string | resource $endpointOrResource, Kraken\Loop\LoopInterface $loop, mixed[] $config = [] ) | ||
__destruct ( ) | ||
close ( ) | ||
getLocalAddress ( ) | ||
getLocalEndpoint ( ) | ||
getLocalHost ( ) | ||
getLocalPort ( ) | ||
getMetadata ( ) | ||
getResource ( ) | ||
getResourceId ( ) | ||
getStreamType ( ) | ||
getWrapperType ( ) | ||
handleClose ( ) | Handle closing event. | |
handleConnect ( ) | Handle the new connection. | |
isOpen ( ) | ||
isPaused ( ) | ||
pause ( ) | ||
resume ( ) | ||
stop ( ) |
Method | Description | |
---|---|---|
createClient ( resource $resource ) : Kraken\Ipc\Socket\SocketInterface | Create the client resource. | |
createServer ( string $endpoint, mixed[] $config = [] ) : resource | Create the server resource. |
Method | Description | |
---|---|---|
parseEndpoint ( ) : string |
public __construct ( string | resource $endpointOrResource, Kraken\Loop\LoopInterface $loop, mixed[] $config = [] ) | ||
$endpointOrResource | string | resource | |
$loop | Kraken\Loop\LoopInterface | |
$config | mixed[] |
protected createClient ( resource $resource ) : Kraken\Ipc\Socket\SocketInterface | ||
$resource | resource | |
return | Kraken\Ipc\Socket\SocketInterface |
protected createServer ( string $endpoint, mixed[] $config = [] ) : resource | ||
$endpoint | string | |
$config | mixed[] | |
return | resource |