|
Diag-Client-Lib
|
Manages Doip tcp and udp connections. More...
#include <connection_manager.h>

Classes | |
| struct | IoContext |
| Type alias for boost context. More... | |
Public Member Functions | |
| ConnectionManager () noexcept | |
| Constructs an instance of DoipConnectionManager. More... | |
| ~ConnectionManager () noexcept=default | |
| Destruct an instance of DoipConnectionManager. More... | |
| std::unique_ptr< uds_transport::Connection > | CreateTcpConnection (uds_transport::ConversionHandler const &conversation, std::string_view tcp_ip_address, std::uint16_t port_num) |
| Function to find or create a new Tcp connection. More... | |
| std::unique_ptr< uds_transport::Connection > | CreateUdpConnection (uds_transport::ConversionHandler const &conversation, std::string_view udp_ip_address, std::uint16_t port_num) |
| Function to find or create a new Udp connection. More... | |
Private Attributes | |
| IoContext | io_context_ |
| Stores the io context. More... | |
Manages Doip tcp and udp connections.
Definition at line 23 of file connection_manager.h.
|
noexcept |
Constructs an instance of DoipConnectionManager.
Definition at line 318 of file connection_manager.cpp.
|
defaultnoexcept |
Destruct an instance of DoipConnectionManager.
| std::unique_ptr< uds_transport::Connection > doip_client::connection::ConnectionManager::CreateTcpConnection | ( | uds_transport::ConversionHandler const & | conversation, |
| std::string_view | tcp_ip_address, | ||
| std::uint16_t | port_num | ||
| ) |
Function to find or create a new Tcp connection.
| [in] | conversation | The conversation handler used by tcp connection to communicate |
| [in] | tcp_ip_address | The local tcp ip address |
| [in] | port_num | The local port number |
Definition at line 320 of file connection_manager.cpp.
Referenced by doip_client::transport_protocol_handler::DoipTransportProtocolHandler::CreateTcpConnection().

| std::unique_ptr< uds_transport::Connection > doip_client::connection::ConnectionManager::CreateUdpConnection | ( | uds_transport::ConversionHandler const & | conversation, |
| std::string_view | udp_ip_address, | ||
| std::uint16_t | port_num | ||
| ) |
Function to find or create a new Udp connection.
| [in] | conversation | The conversation handler used by tcp connection to communicate |
| [in] | udp_ip_address | The local udp ip address |
| [in] | port_num | The local port number |
Definition at line 326 of file connection_manager.cpp.
Referenced by doip_client::transport_protocol_handler::DoipTransportProtocolHandler::CreateUdpConnection().

|
private |
Stores the io context.
Definition at line 73 of file connection_manager.h.