![]() |
TSDuck v3.45-4766
MPEG Transport Stream Toolkit
|
Interface class for TLV-messages connection Reactor handlers. More...
#include <tsReactiveTLVStreamHandlerInterface.h>
Public Member Functions | |
| virtual void | handleReceiveMessage (ReactiveTLVStream &sock, const tlv::MessagePtr &msg, int error_code, const ObjectPtr &user_data) |
| Handle the reception of one valid message. | |
| virtual void | handleSendMessage (ReactiveTLVStream &sock, const ByteBlockPtr &msg, int error_code, const ObjectPtr &user_data) |
| Handle the termination of message send operation. | |
Interface class for TLV-messages connection Reactor handlers.
An application shall use ReactiveTCPConnectionHandlerInterface for the non-TLV parts of the connection. All methods are empty by default. An application may implement the required ones only.
|
virtual |
Handle the reception of one valid message.
| [in,out] | sock | TCP socket for which the handler is invoked. |
| [in] | msg | Pointer to a received decoded message. Can be null in case of error. |
| [in] | error_code | System-specific error code, including:
|
| [in] | user_data | The user-data shared pointer which was passed to startReceive(). |
|
virtual |
Handle the termination of message send operation.
| [in,out] | sock | TCP socket for which the handler is invoked. |
| [in] | msg | Pointer the serialized content of the message. Can be null in case of error. |
| [in] | error_code | System-specific error code, including:
|
| [in] | user_data | The user-data shared pointer which was passed to startSendMessage(). |