CCF
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
asynchost::RPCConnectionsImpl< ConnType > Class Template Reference

#include <rpc_connections.h>

Public Member Functions

 RPCConnectionsImpl (ringbuffer::AbstractWriterFactory &writer_factory, ConnIDGenerator &idGen, std::optional< std::chrono::milliseconds > client_connection_timeout_=std::nullopt, std::optional< std::chrono::seconds > idle_connection_timeout_=std::nullopt)
 
bool listen (ConnID id, std::string &host, std::string &port, const std::string &name)
 
bool connect (ConnID id, const std::string &host, const std::string &port)
 
bool write (ConnID id, size_t len, const uint8_t *data, sockaddr addr={})
 
bool stop (ConnID id)
 
bool close (ConnID id)
 
void register_message_handlers (messaging::Dispatcher< ringbuffer::Message > &disp)
 
void register_udp_message_handlers (messaging::Dispatcher< ringbuffer::Message > &disp)
 
void mark_active (ConnID id)
 
void on_timer ()
 

Constructor & Destructor Documentation

◆ RPCConnectionsImpl()

template<class ConnType >
asynchost::RPCConnectionsImpl< ConnType >::RPCConnectionsImpl ( ringbuffer::AbstractWriterFactory writer_factory,
ConnIDGenerator idGen,
std::optional< std::chrono::milliseconds >  client_connection_timeout_ = std::nullopt,
std::optional< std::chrono::seconds >  idle_connection_timeout_ = std::nullopt 
)
inline

Member Function Documentation

◆ close()

template<class ConnType >
bool asynchost::RPCConnectionsImpl< ConnType >::close ( ConnID  id)
inline

◆ connect()

template<class ConnType >
bool asynchost::RPCConnectionsImpl< ConnType >::connect ( ConnID  id,
const std::string &  host,
const std::string &  port 
)
inline

◆ listen()

template<class ConnType >
bool asynchost::RPCConnectionsImpl< ConnType >::listen ( ConnID  id,
std::string &  host,
std::string &  port,
const std::string &  name 
)
inline

◆ mark_active()

template<class ConnType >
void asynchost::RPCConnectionsImpl< ConnType >::mark_active ( ConnID  id)
inline

◆ on_timer()

template<class ConnType >
void asynchost::RPCConnectionsImpl< ConnType >::on_timer ( )
inline

◆ register_message_handlers()

template<class ConnType >
void asynchost::RPCConnectionsImpl< ConnType >::register_message_handlers ( messaging::Dispatcher< ringbuffer::Message > &  disp)
inline

◆ register_udp_message_handlers()

template<class ConnType >
void asynchost::RPCConnectionsImpl< ConnType >::register_udp_message_handlers ( messaging::Dispatcher< ringbuffer::Message > &  disp)
inline

◆ stop()

template<class ConnType >
bool asynchost::RPCConnectionsImpl< ConnType >::stop ( ConnID  id)
inline

◆ write()

template<class ConnType >
bool asynchost::RPCConnectionsImpl< ConnType >::write ( ConnID  id,
size_t  len,
const uint8_t *  data,
sockaddr  addr = {} 
)
inline

The documentation for this class was generated from the following file: