OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::Listen::List Class Reference

#include <listenlist.hpp>

Inheritance diagram for openvpn::Listen::List:
[legend]
Collaboration diagram for openvpn::Listen::List:
[legend]

Public Types

enum  LoadMode { Nominal , AllowDefault , AllowEmpty }
 

Public Member Functions

 List ()
 
 List (const Item &item)
 
 List (Item &&item)
 
 List (const OptionList &opt, const std::string &directive, const LoadMode load_mode, const unsigned int n_cores)
 
unsigned int total_threads () const
 
std::string to_string () const
 
std::string local_addr () const
 
List expand_ports_by_n_threads (const size_t max_size) const
 
List expand_ports_by_unit (const unsigned int unit) const
 

Static Private Member Functions

static bool is_vpn_binding_profile (const LoadMode load_mode, const Item &e)
 

Detailed Description

Definition at line 88 of file listenlist.hpp.

Member Enumeration Documentation

◆ LoadMode

Enumerator
Nominal 
AllowDefault 
AllowEmpty 

Definition at line 91 of file listenlist.hpp.

Constructor & Destructor Documentation

◆ List() [1/4]

openvpn::Listen::List::List ( )
inline

Definition at line 101 of file listenlist.hpp.

◆ List() [2/4]

openvpn::Listen::List::List ( const Item item)
inline

Definition at line 105 of file listenlist.hpp.

◆ List() [3/4]

openvpn::Listen::List::List ( Item &&  item)
inline

Definition at line 110 of file listenlist.hpp.

◆ List() [4/4]

openvpn::Listen::List::List ( const OptionList opt,
const std::string &  directive,
const LoadMode  load_mode,
const unsigned int  n_cores 
)
inline

Definition at line 115 of file listenlist.hpp.

Member Function Documentation

◆ expand_ports_by_n_threads()

List openvpn::Listen::List::expand_ports_by_n_threads ( const size_t  max_size) const
inline

Definition at line 295 of file listenlist.hpp.

Here is the caller graph for this function:

◆ expand_ports_by_unit()

List openvpn::Listen::List::expand_ports_by_unit ( const unsigned int  unit) const
inline

Definition at line 311 of file listenlist.hpp.

Here is the caller graph for this function:

◆ is_vpn_binding_profile()

static bool openvpn::Listen::List::is_vpn_binding_profile ( const LoadMode  load_mode,
const Item e 
)
inlinestaticprivate

Definition at line 320 of file listenlist.hpp.

Here is the caller graph for this function:

◆ local_addr()

std::string openvpn::Listen::List::local_addr ( ) const
inline

Definition at line 287 of file listenlist.hpp.

◆ to_string()

std::string openvpn::Listen::List::to_string ( ) const
inline

Definition at line 276 of file listenlist.hpp.

Here is the caller graph for this function:

◆ total_threads()

unsigned int openvpn::Listen::List::total_threads ( ) const
inline

Definition at line 268 of file listenlist.hpp.


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