unilink  0.4.3
A simple C++ library for unified async communication
unilink::config::UdpConfig Struct Reference

#include <udp_config.hpp>

Public Member Functions

bool is_valid () const
 
void validate_and_clamp ()
 

Public Attributes

std::string local_address = "0.0.0.0"
 
uint16_t local_port = 0
 
std::optional< std::string > remote_address
 
std::optional< uint16_t > remote_port
 
size_t backpressure_threshold = common::constants::DEFAULT_BACKPRESSURE_THRESHOLD
 
bool enable_memory_pool = true
 
bool stop_on_callback_exception = false
 

Detailed Description

Definition at line 28 of file udp_config.hpp.

Member Function Documentation

◆ is_valid()

bool unilink::config::UdpConfig::is_valid ( ) const
inline

Definition at line 37 of file udp_config.hpp.

◆ validate_and_clamp()

void unilink::config::UdpConfig::validate_and_clamp ( )
inline

Definition at line 47 of file udp_config.hpp.

Member Data Documentation

◆ backpressure_threshold

size_t unilink::config::UdpConfig::backpressure_threshold = common::constants::DEFAULT_BACKPRESSURE_THRESHOLD

Definition at line 33 of file udp_config.hpp.

◆ enable_memory_pool

bool unilink::config::UdpConfig::enable_memory_pool = true

Definition at line 34 of file udp_config.hpp.

◆ local_address

std::string unilink::config::UdpConfig::local_address = "0.0.0.0"

Definition at line 29 of file udp_config.hpp.

◆ local_port

uint16_t unilink::config::UdpConfig::local_port = 0

Definition at line 30 of file udp_config.hpp.

◆ remote_address

std::optional<std::string> unilink::config::UdpConfig::remote_address

Definition at line 31 of file udp_config.hpp.

◆ remote_port

std::optional<uint16_t> unilink::config::UdpConfig::remote_port

Definition at line 32 of file udp_config.hpp.

◆ stop_on_callback_exception

bool unilink::config::UdpConfig::stop_on_callback_exception = false

Definition at line 35 of file udp_config.hpp.


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