Class DuplexResourceStream
The DuplexStreamInterface is responsible for providing an
interface for duplex streams (both readable and writable).
It builds on top of the existing interfaces for readable and writable streams
and follows the exact same method and event semantics. If you're new to this
concept, you should look into the ReadableStreamInterface and
WritableStreamInterface first.
Besides defining a few methods, this interface also implements the
EventEmitterInterface which allows you to react to the same events
defined on the ReadbleStreamInterface and
WritableStreamInterface.
- Evenement\EventEmitter implements Evenement\EventEmitterInterface uses Evenement\EventEmitterTrait
-
React\Stream\DuplexResourceStream
implements
React\Stream\DuplexStreamInterface
Namespace: React\Stream
See:
See:
Located at DuplexResourceStream.php
See:
React\Stream\ReadableStreamInterfaceSee:
React\Stream\WritableStreamInterfaceLocated at DuplexResourceStream.php
public
|
#
__construct( mixed $stream,
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
#
pipe(
Pipes all the data from this readable source into the given writable destination. |
public
|
|
public
|
|
public
|
emit(),
listeners(),
on(),
once(),
removeAllListeners(),
removeListener()
|
(),
(),
(),
(),
(),
()
|
public
integer|null
|
$bufferSize | 65536 |
#
Controls the maximum buffer size in bytes to read at once from the stream. |
public
mixed
|
$stream | |
|
protected
boolean
|
$readable | true |
|
protected
boolean
|
$writable | true |
|
protected
boolean
|
$closing | false |
|
protected
mixed
|
$loop | |
|
protected
mixed
|
$buffer | |
$listeners
|