E-MailRelay
Public Member Functions | Public Attributes | List of all members
GNet::ServerPeer::Config Struct Reference

A configuration structure for GNet::ServerPeer. More...

#include <gserverpeer.h>

+ Collaboration diagram for GNet::ServerPeer::Config:

Public Member Functions

Configset_socket_protocol_config (const SocketProtocol::Config &)
 
Configset_idle_timeout (unsigned int) noexcept
 
Configset_kick_idle_timer_on_send (bool=true) noexcept
 
Configset_no_throw_on_peer_disconnect (bool=true) noexcept
 
Configset_all_timeouts (unsigned int) noexcept
 

Public Attributes

SocketProtocol::Config socket_protocol_config
 
unsigned int idle_timeout {0U}
 
bool kick_idle_timer_on_send {false}
 
bool no_throw_on_peer_disconnect {false}
 

Detailed Description

A configuration structure for GNet::ServerPeer.

Definition at line 62 of file gserverpeer.h.

Member Function Documentation

◆ set_all_timeouts()

GNet::ServerPeer::Config & GNet::ServerPeer::Config::set_all_timeouts ( unsigned int  t)
inlinenoexcept

Definition at line 206 of file gserverpeer.h.

◆ set_idle_timeout()

GNet::ServerPeer::Config & GNet::ServerPeer::Config::set_idle_timeout ( unsigned int  t)
inlinenoexcept

Definition at line 204 of file gserverpeer.h.

◆ set_kick_idle_timer_on_send()

GNet::ServerPeer::Config & GNet::ServerPeer::Config::set_kick_idle_timer_on_send ( bool  b = true)
inlinenoexcept

Definition at line 205 of file gserverpeer.h.

◆ set_no_throw_on_peer_disconnect()

GNet::ServerPeer::Config & GNet::ServerPeer::Config::set_no_throw_on_peer_disconnect ( bool  b = true)
inlinenoexcept

Definition at line 208 of file gserverpeer.h.

◆ set_socket_protocol_config()

GNet::ServerPeer::Config & GNet::ServerPeer::Config::set_socket_protocol_config ( const SocketProtocol::Config config)
inline

Definition at line 207 of file gserverpeer.h.

Member Data Documentation

◆ idle_timeout

unsigned int GNet::ServerPeer::Config::idle_timeout {0U}

Definition at line 65 of file gserverpeer.h.

◆ kick_idle_timer_on_send

bool GNet::ServerPeer::Config::kick_idle_timer_on_send {false}

Definition at line 66 of file gserverpeer.h.

◆ no_throw_on_peer_disconnect

bool GNet::ServerPeer::Config::no_throw_on_peer_disconnect {false}

Definition at line 67 of file gserverpeer.h.

◆ socket_protocol_config

SocketProtocol::Config GNet::ServerPeer::Config::socket_protocol_config

Definition at line 64 of file gserverpeer.h.


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