8 #ifndef DIAGNOSTIC_CLIENT_LIB_APPL_INCLUDE_DIAGNOSTIC_CLIENT_CONVERSATION_H
9 #define DIAGNOSTIC_CLIENT_LIB_APPL_INCLUDE_DIAGNOSTIC_CLIENT_CONVERSATION_H
18 namespace conversation {
Class type to contains a value (of type ValueType), or an error (of type ErrorType)
Conversation class to establish connection with a Diagnostic Server.
Result< uds_message::UdsResponseMessagePtr, DiagError > SendDiagnosticRequest(uds_message::UdsRequestMessageConstPtr message) noexcept
Function to send Diagnostic Request and get Diagnostic Response.
DiagClientConversation(std::string_view conversation_name) noexcept
Constructor an instance of DiagClientConversation.
DiagError
Definitions of Diagnostics Request Response results.
DisconnectResult
Definitions of Disconnection results.
uds_message::UdsMessage::IpAddress IpAddress
Type alias of ip address type.
ConnectResult ConnectToDiagServer(std::uint16_t target_address, IpAddress host_ip_addr) noexcept
Function to connect to Diagnostic Server using Target address and IP address of the server.
void Startup() noexcept
Function to startup the Diagnostic Client Conversation.
ConnectResult
Definitions of Connection results.
~DiagClientConversation() noexcept
Destructor an instance of DiagClientConversation -Conversation-Destruction.
void Shutdown() noexcept
Function to shutdown the Diagnostic Client Conversation.
DisconnectResult DisconnectFromDiagServer() noexcept
Function to disconnect from Diagnostic Server.
std::unique_ptr< DiagClientConversationImpl > diag_client_conversation_impl_
Unique pointer to diag client conversation implementation.
std::string_view IpAddress
Type alias of ip address type.
std::unique_ptr< UdsMessage > UdsResponseMessagePtr
Type alias of unique_ptr for Response Message.
std::unique_ptr< const UdsMessage > UdsRequestMessageConstPtr
Type alias of unique_ptr for constant UdsRequestMessage.