libfly  6.2.2
C++20 utility library for Linux, macOS, and Windows
fly::net::NetworkConfig Class Reference

#include <network_config.hpp>

Inheritance diagram for fly::net::NetworkConfig:
Collaboration diagram for fly::net::NetworkConfig:

Public Member Functions

std::chrono::microseconds socket_io_wait_time () const
 
std::size_t packet_size () const
 

Static Public Attributes

static constexpr const char * identifier = "network"
 

Protected Attributes

std::chrono::microseconds::rep m_default_socket_io_wait_time {10'000}
 
std::size_t m_default_packet_size {4096}
 

Additional Inherited Members

- Protected Member Functions inherited from fly::config::Config
virtual ~Config ()=default
 
template<typename T >
get_value (const std::string &name, T def) const
 
void update (const Json &)
 

Detailed Description

Class to hold networking-related configuration values.

Author
Timothy Flynn (trfly.nosp@m.nn89.nosp@m.@pm.m.nosp@m.e)
Version
March 6, 2021

Member Function Documentation

◆ packet_size()

std::size_t fly::net::NetworkConfig::packet_size ( ) const
Returns
Size of packet to use for socket IO operations.

◆ socket_io_wait_time()

std::chrono::microseconds fly::net::NetworkConfig::socket_io_wait_time ( ) const
Returns
Sleep time for socket polling sequence.

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