Property | Type | Description | |
---|---|---|---|
$socket |
Property | Type | Description | |
---|---|---|---|
$buffer | |||
$connectCallback | callable | ||
$connectionPool | |||
$context | |||
$disconnectCallback | callable | ||
$endpoint | string | ||
$flags | string[] | ||
$hosts | string[] | ||
$id | string | ||
$isConnected | boolean | ||
$loop | Kraken\Loop\LoopInterface | ||
$options | mixed[] | ||
$pendingOperation | string | ||
$type | integer |
Method | Description | |
---|---|---|
__construct ( Kraken\Loop\LoopInterface $loop, string[] $params ) | ||
__destruct ( ) | ||
broadcast ( $message ) | ||
getConnected ( ) | ||
isConnected ( $id ) | ||
isStarted ( ) | ||
isStopped ( ) | ||
markConnectionOnline ( string $id, float $until ) | Set connection statically to be marked as online until specific timestamp. | |
markConnectionPersistent ( string $id ) | Set connection statically to be marked always as online. | |
onMessages ( string[] $argv ) | ||
start ( $blockEvent = false ) | ||
stop ( $blockEvent = false ) | ||
unicast ( $id, $message, $flags = self::MODE_STANDARD ) |
Method | Description | |
---|---|---|
getBuffer ( ) : |
||
getConnectionPool ( ) : |
||
getSocket ( ) : |
||
getSocketType ( ) : integer | ||
parseBinderMessage ( string[] $multipartMessage ) : string[] | ||
parseConnectorMessage ( string[] $multipartMessage ) : string[] | ||
prepareBinderMessage ( string $id, string $type ) : string[] | ||
prepareConnectorMessage ( string $id, string $type ) : string[] | ||
removeEventListener ( string $event, callable $callback ) | ||
setEventListener ( string $event, callable $callback ) |
Method | Description | |
---|---|---|
clearConnectionPool ( ) | ||
fail ( ) | ||
getFrame ( string $id, string $type, mixed $message ) : null | string[] | ||
getSocketConnectorType ( integer $type ) : integer | ||
getSocketDisconnectorType ( integer $type ) : integer | ||
heartbeat ( string $id ) : boolean | ||
onRecvHeartbeat ( |
||
onRecvMessage ( |
||
recvHeartbeat ( |
||
recvMessage ( |
||
sendMessage ( string $id, string $type, mixed $message = null, integer $flags = self::MODE_STANDARD ) : boolean | ||
startHeartbeat ( ) | ||
startTimeRegister ( ) | Start time register. | |
stopHeartbeat ( ) | ||
stopTimeRegister ( ) | Stop time register. |
public __construct ( Kraken\Loop\LoopInterface $loop, string[] $params ) | ||
$loop | Kraken\Loop\LoopInterface | |
$params | string[] |
protected getBuffer ( ) : |
||
return |
protected getConnectionPool ( ) : |
||
return |
abstract protected getSocketType ( ) : integer | ||
return | integer |
public markConnectionOnline ( string $id, float $until ) | ||
$id | string | |
$until | float |
public markConnectionPersistent ( string $id ) | ||
$id | string |
abstract protected parseBinderMessage ( string[] $multipartMessage ) : string[] | ||
$multipartMessage | string[] | |
return | string[] |
abstract protected parseConnectorMessage ( string[] $multipartMessage ) : string[] | ||
$multipartMessage | string[] | |
return | string[] |
abstract protected prepareBinderMessage ( string $id, string $type ) : string[] | ||
$id | string | |
$type | string | |
return | string[] |
abstract protected prepareConnectorMessage ( string $id, string $type ) : string[] | ||
$id | string | |
$type | string | |
return | string[] |
protected removeEventListener ( string $event, callable $callback ) | ||
$event | string | |
$callback | callable |
protected setEventListener ( string $event, callable $callback ) | ||
$event | string | |
$callback | callable |
protected Buffer,Kraken\Channel\Model\Zmq\Buffer $buffer | ||
return |
protected ConnectionPool,Kraken\Channel\Model\Zmq\Connection $connectionPool | ||
return |
protected ZmqContext,Kraken\Ipc\Zmq $context | ||
return |