8 #ifndef DIAG_CLIENT_LIB_LIB_BOOST_SUPPORT_INCLUDE_BOOST_SUPPORT_SERVER_TLS_TLS_SERVER_H_ 
    9 #define DIAG_CLIENT_LIB_LIB_BOOST_SUPPORT_INCLUDE_BOOST_SUPPORT_SERVER_TLS_TLS_SERVER_H_ 
Immutable class to store received tcp message.
 
Server that manages unsecured/ secured tcp connection.
 
std::function< void(MessagePtr)> HandlerRead
Tcp function template used for reception.
 
boost_support::message::tcp::TcpMessagePtr MessagePtr
Type alias for Tcp message pointer.
 
boost_support::message::tcp::TcpMessageConstPtr MessageConstPtr
Type alias for Tcp message const pointer.
 
std::unique_ptr< TlsServerImpl > tls_server_impl_
Unique pointer to tcp server implementation.
 
TlsServer & operator=(TlsServer &&other) noexcept
 
TlsServer(const TlsServer &other) noexcept=delete
Deleted copy assignment and copy constructor.
 
~TlsServer() noexcept
Destruct an instance of TcpServer.
 
TlsServer(TlsServer &&other) noexcept
Move assignment and move constructor.
 
void SetReadHandler(HandlerRead read_handler) noexcept
Function to set the read handler that is invoked when message is received.
 
core_type::Result< void > Transmit(MessageConstPtr tcp_message)
Function to transmit the provided tcp message.
 
TlsServer & operator=(const TlsServer &other) noexcept=delete
 
void DeInitialize() noexcept
De-initialize the server.
 
void Initialize() noexcept
Initialize the server.
 
TlsServer(std::string_view server_name, TlsSocket tls_socket) noexcept
Constructs an instance of TlsServer.
 
Class used to create a tcp socket for handling transmission and reception of tcp message from driver.
 
std::unique_ptr< TcpMessage > TcpMessagePtr
The unique pointer to TcpMessage.
 
std::unique_ptr< TcpMessage const  > TcpMessageConstPtr
The unique pointer to const TcpMessage.
 
core_type::Result< T, E > Result
Class type to contains a value (of type ValueType), or an error (of type ErrorType)