#include <tsReactiveTLVStreamHandlerInterface.h>
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.
◆ handleReceiveMessage()
Handle the reception of one valid message.
- Parameters
-
| [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. The handler may safely copy the shared pointer, the pointed message will not be modified by the ReactiveTLVStream. |
| [in] | error_code | System-specific error code, including:
- SYS_SUCCESS on success.
- SYS_EOF on end of input or if the peer has disconnected,
- SYS_ERROR in case of unknown error.
|
| [in] | user_data | The user-data shared pointer which was passed to startReceive(). |
◆ handleSendMessage()
Handle the termination of message send operation.
- Parameters
-
| [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. The handler may safely copy the shared pointer, the pointed message will not be modified by the ReactiveTLVStream. |
| [in] | error_code | System-specific error code, including:
- SYS_SUCCESS on success.
- SYS_EOF if the handler is called as a completion of "close write" or "send EOF", whatever it means for the stream device.
- SYS_CANCELED if the I/O was canceled before completion.
- SYS_ERROR in case of unknown error.
|
| [in] | user_data | The user-data shared pointer which was passed to startSendMessage(). |
The documentation for this class was generated from the following file: