libjmmcg
build_2414
A C++ library containing an eclectic mix of useful, advanced components.
|
#include <socket_server_manager.hpp>
Additional Inherited Members | |
Public Types inherited from jmmcg::socket::server_manager::asio::forwarding | |
using | base_t = manager |
Public Types inherited from jmmcg::socket::server_manager::asio::manager | |
enum | : typename client_cxns_t::key_type { the_client_cxn =0 } |
using | socket_t = socket::asio::socket_wrapper |
using | acceptor_t = boost::asio::ip::tcp::acceptor |
using | lock_t = std::unique_lock< std::mutex > |
using | client_cxns_t = std::map< unsigned, tcp_connection::ptr_type > |
The collection of connected clients. More... | |
Public Member Functions inherited from jmmcg::socket::server_manager::asio::forwarding | |
forwarding (boost::asio::ip::address const &addr, unsigned short port_num, std::size_t min_message_size, std::size_t max_message_size, socket_t &dest) | |
template<class RecvProcMsgs > | |
void | start_accept (RecvProcMsgs const &proc_fn) noexcept(false) |
Non-blocking call to wait for new connections from a client. More... | |
Public Member Functions inherited from jmmcg::socket::server_manager::asio::manager | |
manager (boost::asio::ip::address const &addr, unsigned short port_num, std::size_t min_message_size, std::size_t max_message_size) | |
Create a new connection to the specified TCP socket using the TCP/IP protocol. More... | |
bool | empty () const noexcept(true) |
client_cxns_t::const_iterator | find (client_cxns_t::key_type const &k) const noexcept(true) |
void | start_heartbeats () |
void | run () |
Blocking wait for a new connection from a client. More... | |
void | stop () |
std::string | to_string () const noexcept(false) |
Static Public Member Functions inherited from jmmcg::socket::server_manager::asio::manager | |
static void | set_options (acceptor_t &acceptor, socket_t &skt) |
Protected Types inherited from jmmcg::socket::server_manager::asio::manager | |
using | read_lock_t = lock_t |
using | write_lock_t = lock_t |
Protected Member Functions inherited from jmmcg::socket::server_manager::asio::manager | |
~manager ()=default | |
void | set_options (socket_t &skt) |
Protected Attributes inherited from jmmcg::socket::server_manager::asio::manager | |
boost::asio::io_service | io_service |
acceptor_t | acceptor |
lock_t::mutex_type | client_cxns_lock_ |
client_cxns_t | client_cxns_ |
Definition at line 61 of file socket_server_manager.hpp.