PHP Class Transporter, zys

Mostrar archivo Open project: qieangel2013/zys Class Usage Examples

Public Methods

Method Description
__construct ( Client $client, $async )
__destruct ( )
asyncSendAndReceive ( $buffer, stdClass $context )
loop ( )
sendAndReceive ( $buffer, stdClass $context )
syncSendAndReceive ( $buffer, stdClass $context )

Protected Methods

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 )

Private Methods

Method Description
asyncRead ( $stream, $o )
checkTimeout ( $o )
closeTimeoutStream ( $o, $index )
createPool ( $client, $o )
read ( $stream )
removeStreamById ( $stream_id, &$pool )
write ( $stream, $request )

Method Details

__construct() public method

public __construct ( Client $client, $async )
$client Client

__destruct() public method

public __destruct ( )

afterRead() abstract protected method

abstract protected afterRead ( $stream, $o, $response )

afterWrite() abstract protected method

abstract protected afterWrite ( $request, $stream, $o )

appendHeader() abstract protected method

abstract protected appendHeader ( $request )

asyncReadError() abstract protected method

abstract protected asyncReadError ( $o, $stream, $index )

asyncSendAndReceive() public method

public asyncSendAndReceive ( $buffer, stdClass $context )
$context stdClass

asyncWrite() protected method

protected asyncWrite ( $stream, $o )

createRequest() abstract protected method

abstract protected createRequest ( $index, $request )

free() protected method

protected free ( $o, $index )

getBodyLength() abstract protected method

abstract protected getBodyLength ( $stream )

getLastError() protected method

protected getLastError ( $error )

getResponse() abstract protected method

abstract protected getResponse ( $stream, $o )

loop() public method

public loop ( )

readHeader() protected method

protected readHeader ( $stream, $n )

removeStream() protected method

protected removeStream ( $stream, &$pool )

sendAndReceive() public method

public sendAndReceive ( $buffer, stdClass $context )
$context stdClass

syncSendAndReceive() public method

public syncSendAndReceive ( $buffer, stdClass $context )
$context stdClass