TSDuck v3.45-4725
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::ReactiveTLVConnectionHandlerInterface Class Referenceabstract

Interface class for TLV-messages connection Reactor handlers. More...

#include <tsReactiveTLVConnectionHandlerInterface.h>

Public Member Functions

virtual void handleReceivedMessage (ReactiveTLVConnection &sock, const tlv::MessagePtr &msg, int error_code)=0
 Handle the reception of one valid message.
 

Detailed Description

Interface class for TLV-messages connection Reactor handlers.

An application shall use ReactiveTCPConnectionHandlerInterface for the non-TLV parts of the connection.

Member Function Documentation

◆ handleReceivedMessage()

virtual void ts::ReactiveTLVConnectionHandlerInterface::handleReceivedMessage ( ReactiveTLVConnection sock,
const tlv::MessagePtr msg,
int  error_code 
)
pure virtual

Handle the reception of one valid message.

Parameters
[in,out]sockTCP socket for which the handler is invoked.
[in]msgPointer to a received decoded message. Can be null in case of error.
[in]error_codeSystem-specific error code, SYS_SUCCESS on success, SYS_EOF if the peer has disconnected, SYS_ERROR in case of unknown error.

The documentation for this class was generated from the following file: