27 #ifndef TCPCONNECTIONS 28 #define TCPCONNECTIONS 88 void CloseConnections();
137 using tcp_conn_map = std::map<defs::connection_t, defs::tcp_conn_ptr_t>;
146 #endif // TCPCONNECTIONS File containing useful definitions.
The core_lib namespace.
Definition: AsioDefines.h:59
std::map< defs::connection_t, defs::tcp_conn_ptr_t > tcp_conn_map
Typedef to our connection map type.
Definition: TcpConnections.h:137
TCP connections class to manage the TcpConnection objects.
Definition: TcpConnections.h:52
std::pair< std::string, uint16_t > connection_t
Typedef describing a network connection as (address, port).
Definition: AsioDefines.h:152
std::mutex m_mutex
Access mutex for thread safety.
Definition: TcpConnections.h:135
std::vector< char > char_buffer_t
Typedef to generic char buffer based on s std::vector<char>.
Definition: AsioDefines.h:239
std::shared_ptr< tcp::TcpConnection > tcp_conn_ptr_t
Typedef describing shared_ptr to a TcpConnection object.
Definition: AsioDefines.h:156