Метод |
Описание |
|
__construct ( resource $fd, mixed $pool = null ) |
Constructor |
|
acquire ( ) : void |
Acquire the connection |
|
checkFree ( ) : void |
Set connection free/busy according to onResponse emptiness and ->finished |
|
getQueueLength ( ) : integer |
getQueueLength |
|
isBusy ( ) : boolean |
Busy? |
|
isQueueEmpty ( ) : boolean |
isQueueEmpty |
|
onFinish ( ) : void |
Called when connection finishes |
|
onReady ( ) : void |
Called when the connection is handshaked (at low-level), and peer is ready to recv. data |
|
onResponse ( callable $cb ) : void |
Push callback to onReponse stack |
|
release ( ) : void |
Release the connection |
|
setFree ( boolean $free = true ) : void |
Set connection free/busy |
|