8 #ifndef DIAG_CLIENT_LIB_LIB_BOOST_SUPPORT_SOCKET_TCP_TCP_SERVER_H_
9 #define DIAG_CLIENT_LIB_LIB_BOOST_SUPPORT_SOCKET_TCP_TCP_SERVER_H_
12 #include <boost/asio.hpp>
13 #include <string_view>
22 using Tcp = boost::asio::ip::tcp;
TcpServerConnection(boost::asio::io_context &io_context, TcpHandlerRead &&tcp_handler_read)
TcpHandlerRead tcp_handler_read_
TcpServerConnection & operator=(TcpServerConnection &&)=default
~TcpServerConnection()=default
TcpServerConnection(TcpServerConnection &)=delete
TcpServerConnection(TcpServerConnection &&)=default
TcpServerConnection & operator=(TcpServerConnection &)=delete
bool Transmit(TcpMessageConstPtr udp_tx_message)
std::unique_ptr< TcpAccepter > tcp_accepter_
~CreateTcpServerSocket()=default
boost::asio::ip::tcp::acceptor TcpAccepter
std::string local_ip_address_
CreateTcpServerSocket(std::string_view local_ip_address, uint16_t local_port_num)
boost::asio::io_context io_context_
std::function< void(TcpMessagePtr)> TcpHandlerRead
TcpServerConnection GetTcpServerConnection(TcpHandlerRead &&tcp_handler_read)
std::unique_ptr< const TcpMessage > TcpMessageConstPtr
The unique pointer to const TcpMessage.
std::unique_ptr< TcpMessage > TcpMessagePtr
The unique pointer to TcpMessage.