JayBeams  0.1
Another project to have fun coding.
Public Member Functions | Public Attributes | List of all members
jb::itch5::udp_config_common Class Reference

Common configuration parameters for both UDP senders and receivers. More...

#include <udp_config_common.hpp>

Inheritance diagram for jb::itch5::udp_config_common:
jb::config_object jb::itch5::udp_receiver_config jb::itch5::udp_sender_config

Public Member Functions

 udp_config_common ()
 
 config_object_constructors (udp_config_common)
 
- Public Member Functions inherited from jb::config_object
 config_object ()
 Default constructor. More...
 
 config_object (config_object const &rhs)
 Copy constructor. More...
 
 config_object (config_object &&rhs)
 Move constructor. More...
 
virtual ~config_object ()
 Destructor. More...
 
config_objectoperator= (config_object rhs)
 Copy & swap assignment. More...
 
void swap (config_object &rhs)
 Derived classes should implement member by member swap. More...
 
void load_overrides (int &argc, char *argv[], std::string const &filename, char const *environment_variable_name)
 Read the configuration file and load the overrides defined therein. More...
 
void load_overrides (int &argc, char *argv[], std::string const &filename)
 Read the configuration file and load the overrides defined therein. More...
 
void load_overrides (int &argc, char *argv[], std::istream &is)
 Read the configuration file and load the overrides defined therein. More...
 
void process_cmdline (int &argc, char *argv[])
 Process the command line. More...
 
virtual void validate () const
 Validate the settings. More...
 
std::ostream & to_stream (std::ostream &os) const
 Print out the settings. More...
 

Public Attributes

jb::config_attribute< udp_config_common, bool > debug
 
jb::config_attribute< udp_config_common, bool > do_not_route
 
jb::config_attribute< udp_config_common, bool > linger
 
jb::config_attribute< udp_config_common, int > linger_seconds
 
jb::config_attribute< udp_config_common, bool > reuse_address
 
jb::config_attribute< udp_config_common, int > receive_buffer_size
 
jb::config_attribute< udp_config_common, int > receive_low_watermark
 
jb::config_attribute< udp_config_common, int > send_buffer_size
 
jb::config_attribute< udp_config_common, int > send_low_watermark
 

Additional Inherited Members

- Static Protected Member Functions inherited from jb::config_object
static attribute_descriptor desc (std::string const &name)
 Convenience function to create attribute descriptors with less typing. More...
 
static attribute_descriptor desc (std::string const &name, std::string const &class_name)
 Convenience function to create attribute descriptors with less typing. More...
 

Detailed Description

Common configuration parameters for both UDP senders and receivers.

Definition at line 12 of file udp_config_common.hpp.

Constructor & Destructor Documentation

◆ udp_config_common()

jb::itch5::udp_config_common::udp_config_common ( )

Definition at line 6 of file udp_config_common.cpp.

References jb::debug.

Member Function Documentation

◆ config_object_constructors()

jb::itch5::udp_config_common::config_object_constructors ( udp_config_common  )

Member Data Documentation

◆ debug

jb::config_attribute<udp_config_common, bool> jb::itch5::udp_config_common::debug

Definition at line 17 of file udp_config_common.hpp.

Referenced by jb::itch5::make_socket_udp_common().

◆ do_not_route

jb::config_attribute<udp_config_common, bool> jb::itch5::udp_config_common::do_not_route

Definition at line 18 of file udp_config_common.hpp.

Referenced by jb::itch5::make_socket_udp_common().

◆ linger

jb::config_attribute<udp_config_common, bool> jb::itch5::udp_config_common::linger

Definition at line 19 of file udp_config_common.hpp.

Referenced by jb::itch5::make_socket_udp_common().

◆ linger_seconds

jb::config_attribute<udp_config_common, int> jb::itch5::udp_config_common::linger_seconds

Definition at line 20 of file udp_config_common.hpp.

Referenced by jb::itch5::make_socket_udp_common().

◆ receive_buffer_size

jb::config_attribute<udp_config_common, int> jb::itch5::udp_config_common::receive_buffer_size

Definition at line 22 of file udp_config_common.hpp.

Referenced by jb::itch5::make_socket_udp_common().

◆ receive_low_watermark

jb::config_attribute<udp_config_common, int> jb::itch5::udp_config_common::receive_low_watermark

Definition at line 23 of file udp_config_common.hpp.

Referenced by jb::itch5::make_socket_udp_common().

◆ reuse_address

jb::config_attribute<udp_config_common, bool> jb::itch5::udp_config_common::reuse_address

◆ send_buffer_size

jb::config_attribute<udp_config_common, int> jb::itch5::udp_config_common::send_buffer_size

Definition at line 24 of file udp_config_common.hpp.

Referenced by jb::itch5::make_socket_udp_common().

◆ send_low_watermark

jb::config_attribute<udp_config_common, int> jb::itch5::udp_config_common::send_low_watermark

Definition at line 25 of file udp_config_common.hpp.

Referenced by jb::itch5::make_socket_udp_common().


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