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

#include <psid.hpp>

Classes

struct  PsidBuf
 

Public Types

enum  { SIZE = 8 }
 

Public Member Functions

constexpr ProtoSessionID ()
 
void reset ()
 
template<typename BufType >
 ProtoSessionID (BufType &buf)
 
void randomize (StrongRandomAPI &rng)
 
template<typename BufType >
void read (BufType &buf)
 
void write (Buffer &buf) const
 
void prepend (Buffer &buf) const
 
const Buffer get_buf () const
 
constexpr bool defined () const
 
bool match (const ProtoSessionID &other) const
 
std::string str () const
 

Private Attributes

bool defined_
 
unsigned char id_ [SIZE]
 

Detailed Description

Definition at line 26 of file psid.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SIZE 

Definition at line 29 of file psid.hpp.

Constructor & Destructor Documentation

◆ ProtoSessionID() [1/2]

constexpr openvpn::ProtoSessionID::ProtoSessionID ( )
inlineconstexpr

Definition at line 34 of file psid.hpp.

◆ ProtoSessionID() [2/2]

template<typename BufType >
openvpn::ProtoSessionID::ProtoSessionID ( BufType &  buf)
inlineexplicit

Definition at line 46 of file psid.hpp.

Member Function Documentation

◆ defined()

constexpr bool openvpn::ProtoSessionID::defined ( ) const
inlineconstexpr

Definition at line 85 of file psid.hpp.

Here is the caller graph for this function:

◆ get_buf()

const Buffer openvpn::ProtoSessionID::get_buf ( ) const
inline

Definition at line 76 of file psid.hpp.

Here is the caller graph for this function:

◆ match()

bool openvpn::ProtoSessionID::match ( const ProtoSessionID other) const
inline

Definition at line 90 of file psid.hpp.

Here is the caller graph for this function:

◆ prepend()

void openvpn::ProtoSessionID::prepend ( Buffer buf) const
inline

Definition at line 70 of file psid.hpp.

Here is the caller graph for this function:

◆ randomize()

void openvpn::ProtoSessionID::randomize ( StrongRandomAPI rng)
inline

Definition at line 52 of file psid.hpp.

Here is the caller graph for this function:

◆ read()

template<typename BufType >
void openvpn::ProtoSessionID::read ( BufType &  buf)
inline

Definition at line 59 of file psid.hpp.

Here is the caller graph for this function:

◆ reset()

void openvpn::ProtoSessionID::reset ( )
inline

Definition at line 39 of file psid.hpp.

Here is the caller graph for this function:

◆ str()

std::string openvpn::ProtoSessionID::str ( ) const
inline

Definition at line 95 of file psid.hpp.

Here is the caller graph for this function:

◆ write()

void openvpn::ProtoSessionID::write ( Buffer buf) const
inline

Definition at line 65 of file psid.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ defined_

bool openvpn::ProtoSessionID::defined_
private

Definition at line 111 of file psid.hpp.

◆ id_

unsigned char openvpn::ProtoSessionID::id_[SIZE]
private

Definition at line 112 of file psid.hpp.


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