8 #ifndef DIAG_CLIENT_LIB_LIB_DOIP_CLIENT_CONNECTION_CONNECTION_MANAGER_H_
9 #define DIAG_CLIENT_LIB_LIB_DOIP_CLIENT_CONNECTION_CONNECTION_MANAGER_H_
12 #include <string_view>
18 namespace connection {
52 uds_transport::ConversionHandler const &conversation, std::string_view tcp_ip_address,
53 std::uint16_t port_num);
66 uds_transport::ConversionHandler const &conversation, std::string_view udp_ip_address,
67 std::uint16_t port_num);
Manages Doip tcp and udp connections.
ConnectionManager() noexcept
Constructs an instance of DoipConnectionManager.
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.
IoContext io_context_
Stores the io context.
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.
Type alias for boost context.