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

#include <mode.hpp>

Public Types

enum  Type { CLIENT , SERVER }
 

Public Member Functions

 Mode ()
 
 Mode (const Type t)
 
bool is_server () const
 
bool is_client () const
 
bool operator== (const Mode &other)
 
bool operator!= (const Mode &other)
 
const char * str () const
 

Private Attributes

Type type_
 

Detailed Description

Definition at line 18 of file mode.hpp.

Member Enumeration Documentation

◆ Type

Enumerator
CLIENT 
SERVER 

Definition at line 21 of file mode.hpp.

Constructor & Destructor Documentation

◆ Mode() [1/2]

openvpn::Mode::Mode ( )
inline

Definition at line 27 of file mode.hpp.

◆ Mode() [2/2]

openvpn::Mode::Mode ( const Type  t)
inlineexplicit

Definition at line 31 of file mode.hpp.

Member Function Documentation

◆ is_client()

bool openvpn::Mode::is_client ( ) const
inline

Definition at line 40 of file mode.hpp.

Here is the caller graph for this function:

◆ is_server()

bool openvpn::Mode::is_server ( ) const
inline

Definition at line 36 of file mode.hpp.

Here is the caller graph for this function:

◆ operator!=()

bool openvpn::Mode::operator!= ( const Mode other)
inline

Definition at line 50 of file mode.hpp.

◆ operator==()

bool openvpn::Mode::operator== ( const Mode other)
inline

Definition at line 45 of file mode.hpp.

◆ str()

const char * openvpn::Mode::str ( ) const
inline

Definition at line 55 of file mode.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ type_

Type openvpn::Mode::type_
private

Definition at line 69 of file mode.hpp.


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