CatapultServer  v0.5.0.1 (Elephant)
catapult::net::AsyncTcpServerSettings Struct Reference

Settings used to configure AsyncTcpServer behavior. More...

Collaboration diagram for catapult::net::AsyncTcpServerSettings:

Public Member Functions

 AsyncTcpServerSettings (const AcceptHandler &accept)
 Creates a structure with a preconfigured accept handler (accept). More...
 

Public Attributes

const AcceptHandler Accept
 Accept handler (must be set via constructor). More...
 
ConfigureSocketHandler ConfigureSocket
 
ionet::PacketSocketOptions PacketSocketOptions
 Packet socket options. More...
 
uint16_t MaxPendingConnections = 100
 
uint32_t MaxActiveConnections = 25
 
bool AllowAddressReuse = false
 true if the server should reuse ports already in use. More...
 

Detailed Description

Settings used to configure AsyncTcpServer behavior.

Constructor & Destructor Documentation

◆ AsyncTcpServerSettings()

catapult::net::AsyncTcpServerSettings::AsyncTcpServerSettings ( const AcceptHandler accept)
explicit

Creates a structure with a preconfigured accept handler (accept).

Member Data Documentation

◆ Accept

const AcceptHandler catapult::net::AsyncTcpServerSettings::Accept

Accept handler (must be set via constructor).

◆ AllowAddressReuse

bool catapult::net::AsyncTcpServerSettings::AllowAddressReuse = false

true if the server should reuse ports already in use.

◆ ConfigureSocket

ConfigureSocketHandler catapult::net::AsyncTcpServerSettings::ConfigureSocket

◆ MaxActiveConnections

uint32_t catapult::net::AsyncTcpServerSettings::MaxActiveConnections = 25

◆ MaxPendingConnections

uint16_t catapult::net::AsyncTcpServerSettings::MaxPendingConnections = 100

◆ PacketSocketOptions

ionet::PacketSocketOptions catapult::net::AsyncTcpServerSettings::PacketSocketOptions

Packet socket options.


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