![]() |
TSDuck v3.45-4766
MPEG Transport Stream Toolkit
|
Interface class for StreamInterface Reactor handlers. More...
#include <tsReactiveStreamHandlerInterface.h>

Public Member Functions | |
| virtual void | handleReadStream (ReactiveStream &stream, const ByteBlock &data, ReactiveInputControl &control, int error_code, const ObjectPtr &user_data) |
| Handle the reception of data from a read operation on a stream. | |
| virtual void | handleWriteStream (ReactiveStream &stream, int error_code, const ObjectPtr &user_data) |
| Handle the completion of a write operation on a stream. | |
Interface class for StreamInterface Reactor handlers.
All methods are empty by default. An application may implement the required ones only.
|
virtual |
Handle the completion of a write operation on a stream.
| [in,out] | stream | Stream device for which the handler is invoked. |
| [in] | error_code | System-specific error code, including:
|
| [in] | user_data | The user-data shared pointer which was passed to startWriteStream(). |
Reimplemented in ts::ReactiveTLSConnection.
|
virtual |
Handle the reception of data from a read operation on a stream.
| [in,out] | stream | Stream device for which the handler is invoked. |
| [in] | data | Received data. |
| [in,out] | control | Input control data that the handler may update according to the usage of data. |
| [in] | error_code | System-specific error code, including:
|
| [in] | user_data | The user-data shared pointer which was passed to startReadStream(). |
Reimplemented in ts::ReactiveTLSConnection.