Property | Type | Description | |
---|---|---|---|
$socket | resource | Socket handle |
Method | Description | |
---|---|---|
connect ( $connectionTimeout, $responseTimeout = null ) | ||
disconnect ( ) | ||
execute ( Disque\Command\CommandInterface $command ) | ||
isConnected ( ) | ||
receive ( boolean $keepWaiting = false ) : mixed | Read data from connection | |
send ( string $data ) | Execute a command on the connection |
Method | Description | |
---|---|---|
getSocket ( string $host, integer $port, float $timeout ) : resource | Build actual socket |
Method | Description | |
---|---|---|
getData ( ) : string | Get a line of data | |
getType ( boolean $keepWaiting = false ) : string | Get the first byte from Disque, which contains the data type | |
shouldBeConnected ( ) : void | We should be connected |
public execute ( Disque\Command\CommandInterface $command ) | ||
$command | Disque\Command\CommandInterface |