PHP Class Kraken\Ipc\Zmq\ZmqSocket

Inheritance: extends Kraken\Event\BaseEventEmitter
Afficher le fichier Open project: kraken-php/framework Class Usage Examples

Méthodes publiques

Свойство Type Description
$closed boolean
$fd resource

Méthodes publiques

Méthode Description
__call ( string $method, mixed[] $args ) : mixed
__construct ( ZMQSocket $socket, Kraken\Loop\LoopInterface $loop )
attachReadListener ( ) Attach read listener.
close ( ) Close connection and discard not sent data.
end ( ) Deactivate socket, wait to complete sending all unfinished data, then close connection.
getWrappedSocket ( ) : ZMQSocket Return socket.
handleEvent ( ) Handle ZMQ Event.
handleReadEvent ( ) Handle ZMQ Read Event.
send ( string $message ) Send message.
subscribe ( mixed $channel ) Subscribe socket to channel.
unsubscribe ( mixed $channel ) Unsubscribe socket from channel.

Method Details

__call() public méthode

public __call ( string $method, mixed[] $args ) : mixed
$method string
$args mixed[]
Résultat mixed

__construct() public méthode

public __construct ( ZMQSocket $socket, Kraken\Loop\LoopInterface $loop )
$socket ZMQSocket
$loop Kraken\Loop\LoopInterface

attachReadListener() public méthode

Attach read listener.
public attachReadListener ( )

close() public méthode

Close connection and discard not sent data.
public close ( )

end() public méthode

Deactivate socket, wait to complete sending all unfinished data, then close connection.
public end ( )

getWrappedSocket() public méthode

Return socket.
public getWrappedSocket ( ) : ZMQSocket
Résultat ZMQSocket

handleEvent() public méthode

Handle ZMQ Event.
public handleEvent ( )

handleReadEvent() public méthode

Handle ZMQ Read Event.
public handleReadEvent ( )

send() public méthode

Send message.
public send ( string $message )
$message string

subscribe() public méthode

Subscribe socket to channel.
public subscribe ( mixed $channel )
$channel mixed

unsubscribe() public méthode

Unsubscribe socket from channel.
public unsubscribe ( mixed $channel )
$channel mixed

Property Details

$closed public_oe property

public bool $closed
Résultat boolean

$fd public_oe property

public resource $fd
Résultat resource