Diag-Client-Lib
|
Manages Doip tcp and udp connections. More...
#include <connection_manager.h>
Public Member Functions | |
DoipConnectionManager ()=default | |
Constructs an instance of DoipConnectionManager. More... | |
~DoipConnectionManager ()=default | |
Destruct an instance of DoipConnectionManager. More... | |
std::unique_ptr< uds_transport::Connection > | FindOrCreateTcpConnection (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 > | FindOrCreateUdpConnection (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... | |
Manages Doip tcp and udp connections.
Definition at line 23 of file connection_manager.h.
|
default |
Constructs an instance of DoipConnectionManager.
|
default |
Destruct an instance of DoipConnectionManager.
std::unique_ptr< uds_transport::Connection > doip_client::connection::DoipConnectionManager::FindOrCreateTcpConnection | ( | 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 283 of file connection_manager.cpp.
Referenced by doip_client::transport_protocol_handler::DoipTransportProtocolHandler::CreateTcpConnection().
std::unique_ptr< uds_transport::Connection > doip_client::connection::DoipConnectionManager::FindOrCreateUdpConnection | ( | 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 288 of file connection_manager.cpp.
Referenced by doip_client::transport_protocol_handler::DoipTransportProtocolHandler::CreateUdpConnection().