Свойство | Тип | Описание | |
---|---|---|---|
$connectionPool | |||
$endpoint | string | ||
$flags | string[] | ||
$frameBuffer | string[] | ||
$hosts | string[] | ||
$id | string | ||
$isConnected | boolean | ||
$loop | Kraken\Loop\LoopInterface | ||
$offlineBuffer | |||
$onlineBuffer | |||
$options | mixed[] | ||
$socket | Kraken\Ipc\Socket\SocketInterface | Kraken\Ipc\Socket\SocketListenerInterface | null | ||
$type | integer |
Метод | Описание | |
---|---|---|
__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. | |
onData ( Kraken\Ipc\Socket\SocketInterface $client, string $data ) | ||
start ( $blockEvent = false ) | ||
stop ( $blockEvent = false ) | ||
unicast ( $id, $message, $flags = Channel::MODE_STANDARD ) |
Метод | Описание | |
---|---|---|
createBinder ( ) : Kraken\Ipc\Socket\SocketListenerInterface | ||
createConnector ( ) : Kraken\Ipc\Socket\SocketInterface | ||
destroyBinder ( ) | ||
destroyConnector ( ) | ||
getBuffer ( ) : |
||
getConnectionPool ( ) : |
||
parseBinderMessage ( string $message ) : string[] | ||
parseConnectorMessage ( string $message ) : string[] | ||
prepareBinderMessage ( string $id, string $type ) : string[] | ||
prepareConnectorMessage ( string $id, string $type ) : string[] | ||
removeEventListener ( string $event, callable $callback ) | ||
setEventListener ( string $event, callable $callback ) |
Метод | Описание | |
---|---|---|
clearConnectionPool ( ) | Clear connection pool. | |
getFrame ( string $id, string $type, string $message ) : null | string | ||
heartbeat ( string $id ) : boolean | ||
onMessage ( Kraken\Ipc\Socket\SocketInterface $client, string $message ) | ||
onRecvHeartbeat ( |
||
onRecvMessage ( |
||
recvHeartbeat ( |
||
recvMessage ( |
||
sendMessage ( string $id, string $type, string | string[] $message = null, integer $flags = Channel::MODE_STANDARD ) : boolean | ||
startConnection ( ) : boolean | ||
startHeartbeat ( ) | Start heartbeat. | |
startTimeRegister ( ) | Start time register. | |
stopConnection ( ) : boolean | ||
stopHeartbeat ( ) | Stop hearbeat. | |
stopTimeRegister ( ) | Stop time register. | |
writeData ( string $id, string $data ) : boolean |
public __construct ( Kraken\Loop\LoopInterface $loop, string[] $params ) | ||
$loop | Kraken\Loop\LoopInterface | |
$params | string[] |
protected createBinder ( ) : Kraken\Ipc\Socket\SocketListenerInterface | ||
Результат | Kraken\Ipc\Socket\SocketListenerInterface |
protected createConnector ( ) : Kraken\Ipc\Socket\SocketInterface | ||
Результат | Kraken\Ipc\Socket\SocketInterface |
protected getBuffer ( ) : |
||
Результат |
protected getConnectionPool ( ) : |
||
Результат |
public markConnectionOnline ( string $id, float $until ) | ||
$id | string | |
$until | float |
public markConnectionPersistent ( string $id ) | ||
$id | string |
protected parseBinderMessage ( string $message ) : string[] | ||
$message | string | |
Результат | string[] |
protected parseConnectorMessage ( string $message ) : string[] | ||
$message | string | |
Результат | string[] |
protected prepareBinderMessage ( string $id, string $type ) : string[] | ||
$id | string | |
$type | string | |
Результат | string[] |
protected prepareConnectorMessage ( string $id, string $type ) : string[] | ||
$id | string | |
$type | string | |
Результат | string[] |
protected removeEventListener ( string $event, callable $callback ) | ||
$event | string | |
$callback | callable |
protected setEventListener ( string $event, callable $callback ) | ||
$event | string | |
$callback | callable |
protected ConnectionPool,Kraken\Channel\Model\Socket\Connection $connectionPool | ||
Результат |
protected LoopInterface,Kraken\Loop $loop | ||
Результат | Kraken\Loop\LoopInterface |
protected Buffer,Kraken\Channel\Model\Socket\Buffer $offlineBuffer | ||
Результат |
protected Buffer,Kraken\Channel\Model\Socket\Buffer $onlineBuffer | ||
Результат |
protected SocketInterface,Kraken\Ipc\Socket|SocketListenerInterface,Kraken\Ipc\Socket|null $socket | ||
Результат | Kraken\Ipc\Socket\SocketInterface | Kraken\Ipc\Socket\SocketListenerInterface | null |