PHP Class Kraken\Stream\AsyncStreamReader

Inheritance: extends StreamReader, implements AsyncStreamReaderInterface, use trait Kraken\Loop\LoopAwareTrait
Show file Open project: kraken-php/framework

Protected Properties

Property Type Description
$listening boolean
$paused boolean

Public Methods

Method Description
__construct ( resource $resource, Kraken\Loop\LoopInterface $loop, boolean $autoClose = true )
__destruct ( )
getBufferSize ( )
handleClose ( ) Handle close.
handleData ( ) Handle the incoming stream.
isPaused ( )
pause ( )
resume ( )
setBufferSize ( $bufferSize )

Method Details

__construct() public method

public __construct ( resource $resource, Kraken\Loop\LoopInterface $loop, boolean $autoClose = true )
$resource resource
$loop Kraken\Loop\LoopInterface
$autoClose boolean

__destruct() public method

public __destruct ( )

getBufferSize() public method

public getBufferSize ( )

handleClose() public method

Handle close.
public handleClose ( )

handleData() public method

Handle the incoming stream.
public handleData ( )

isPaused() public method

public isPaused ( )

pause() public method

public pause ( )

resume() public method

public resume ( )

setBufferSize() public method

public setBufferSize ( $bufferSize )

Property Details

$listening protected property

protected bool $listening
return boolean

$paused protected property

protected bool $paused
return boolean