Method | Description | |
---|---|---|
__construct ( Client $client, $async ) | ||
__destruct ( ) | ||
asyncSendAndReceive ( $buffer, stdClass $context ) | ||
loop ( ) | ||
sendAndReceive ( $buffer, stdClass $context ) | ||
syncSendAndReceive ( $buffer, stdClass $context ) |
Method | Description | |
---|---|---|
afterRead ( $stream, $o, $response ) | ||
afterWrite ( $request, $stream, $o ) | ||
appendHeader ( $request ) | ||
asyncReadError ( $o, $stream, $index ) | ||
asyncWrite ( $stream, $o ) | ||
createRequest ( $index, $request ) | ||
free ( $o, $index ) | ||
getBodyLength ( $stream ) | ||
getLastError ( $error ) | ||
getResponse ( $stream, $o ) | ||
readHeader ( $stream, $n ) | ||
removeStream ( $stream, &$pool ) |
Method | Description | |
---|---|---|
asyncRead ( $stream, $o ) | ||
checkTimeout ( $o ) | ||
closeTimeoutStream ( $o, $index ) | ||
createPool ( $client, $o ) | ||
read ( $stream ) | ||
removeStreamById ( $stream_id, &$pool ) | ||
write ( $stream, $request ) |
abstract protected asyncReadError ( $o, $stream, $index ) |
public asyncSendAndReceive ( $buffer, stdClass $context ) | ||
$context | stdClass |
public sendAndReceive ( $buffer, stdClass $context ) | ||
$context | stdClass |
public syncSendAndReceive ( $buffer, stdClass $context ) | ||
$context | stdClass |