![]() |
TSDuck v3.45-4766
MPEG Transport Stream Toolkit
|
Interface class for line-oriented Telnet-like connection Reactor handlers. More...
#include <tsReactiveTextStreamHandlerInterface.h>
Public Member Functions | |
| virtual void | handleTextLine (ReactiveTextStream &stream, const UString &line, int error_code, const ObjectPtr &user_data) |
| Handle the reception of one text line. | |
| virtual void | handleWriteText (ReactiveTextStream &stream, const std::string &text, int error_code, const ObjectPtr &user_data) |
| Handle the termination of a write operation. | |
Interface class for line-oriented Telnet-like connection Reactor handlers.
With a ReactiveTCPConnection, an application shall use ReactiveTCPConnectionHandlerInterface for the non-line-oriented parts of the connection (connection, close, etc). All methods are empty by default. An application may implement the required ones only.
|
virtual |
Handle the reception of one text line.
| [in,out] | stream | Reactive stream for which the handler is invoked. |
| [in] | line | Received text line, without end-of-line markers. |
| [in] | error_code | System-specific error code, including:
|
| [in] | user_data | The user-data shared pointer which was passed to startReadText(). |
|
virtual |
Handle the termination of a write operation.
| [in,out] | stream | Reactive stream for which the handler is invoked. |
| [in] | text | Sent text. This is the raw sent text, with embedded end-of-lines and UTF-8 translation of UString lines. When flush was set to false in some start-write operations, the text contains the concatenation of all previous unflushed operations. |
| [in] | error_code | System-specific error code, including:
|
| [in] | user_data | The user-data shared pointer which was passed to startWriteLine() or startWriteText(). |