Class to manage reception from transport protocol handler to connection handler.
More...
#include <conversation_handler.h>
Class to manage reception from transport protocol handler to connection handler.
Definition at line 19 of file conversation_handler.h.
◆ ConversionHandler() [1/3]
Constructs an instance of ConversionHandler.
- Parameters
-
[in] | handler_id | The handle id of conversation |
Definition at line 26 of file conversation_handler.h.
conversion_manager::ConversionHandlerID handler_id_
Store the conversation handle id.
◆ ConversionHandler() [2/3]
uds_transport::ConversionHandler::ConversionHandler |
( |
const ConversionHandler & |
other | ) |
|
|
defaultnoexcept |
Default copy assignment and copy constructor.
◆ ConversionHandler() [3/3]
Default move assignment and move constructor.
◆ ~ConversionHandler()
virtual uds_transport::ConversionHandler::~ConversionHandler |
( |
| ) |
|
|
virtualdefaultnoexcept |
◆ HandleMessage()
virtual void uds_transport::ConversionHandler::HandleMessage |
( |
UdsMessagePtr |
message | ) |
const |
|
pure virtualnoexcept |
◆ IndicateMessage()
Function to indicate a start of reception of message.
This is called to indicate the reception of new message by underlying transport protocol handler
- Parameters
-
[in] | source_addr | The UDS source address of message |
[in] | target_addr | The UDS target address of message |
[in] | type | The indication whether its is phys/func request |
[in] | channel_id | The transport protocol channel on which message start happened |
[in] | size | The size in bytes of the UdsMessage starting from SID |
[in] | priority | The priority of the given message, used for prioritization of conversations |
[in] | protocol_kind | The identifier of protocol kind associated to message |
[in] | payload_info | The view onto the first received payload bytes, if any. This view shall be used only within this function call. It is recommended that the TP provides at least the first two bytes of the request message, so the DM can identify a functional TesterPresent |
- Returns
- std::pair< IndicationResult, UdsMessagePtr > The pair of IndicationResult and a pointer to UdsMessage owned/created by DM core and returned to the handler to get filled
Referenced by doip_client::connection::DoipTcpConnection::IndicateMessage(), and doip_client::connection::DoipUdpConnection::IndicateMessage().
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ handler_id_
The documentation for this class was generated from the following file:
- /home/runner/work/diag-client-lib/diag-client-lib/diag-client-lib/lib/uds-transport-layer-api/uds_transport/conversation_handler.h