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

#include <proto.hpp>

Public Member Functions

bool is_defined () const
 
bool is_control () const
 
bool is_data () const
 
bool is_soft_reset () const
 
int peer_id () const
 

Private Types

enum  { DEFINED = 1 << 0 , CONTROL = 1 << 1 , SECONDARY = 1 << 2 , SOFT_RESET = 1 << 3 }
 

Private Member Functions

 PacketType (const Buffer &buf, class ProtoContext &proto)
 

Private Attributes

unsigned int flags
 
unsigned int opcode
 
int peer_id_
 

Friends

class ProtoContext
 

Detailed Description

Definition at line 1277 of file proto.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
DEFINED 
CONTROL 
SECONDARY 
SOFT_RESET 

Definition at line 1281 of file proto.hpp.

Constructor & Destructor Documentation

◆ PacketType()

openvpn::ProtoContext::PacketType::PacketType ( const Buffer buf,
class ProtoContext proto 
)
inlineprivate

Definition at line 1313 of file proto.hpp.

Member Function Documentation

◆ is_control()

bool openvpn::ProtoContext::PacketType::is_control ( ) const
inline

Definition at line 1294 of file proto.hpp.

Here is the caller graph for this function:

◆ is_data()

bool openvpn::ProtoContext::PacketType::is_data ( ) const
inline

Definition at line 1298 of file proto.hpp.

Here is the caller graph for this function:

◆ is_defined()

bool openvpn::ProtoContext::PacketType::is_defined ( ) const
inline

Definition at line 1290 of file proto.hpp.

Here is the caller graph for this function:

◆ is_soft_reset()

bool openvpn::ProtoContext::PacketType::is_soft_reset ( ) const
inline

Definition at line 1302 of file proto.hpp.

Here is the caller graph for this function:

◆ peer_id()

int openvpn::ProtoContext::PacketType::peer_id ( ) const
inline

Definition at line 1307 of file proto.hpp.

Friends And Related Symbol Documentation

◆ ProtoContext

friend class ProtoContext
friend

Definition at line 1279 of file proto.hpp.

Member Data Documentation

◆ flags

unsigned int openvpn::ProtoContext::PacketType::flags
private

Definition at line 1388 of file proto.hpp.

◆ opcode

unsigned int openvpn::ProtoContext::PacketType::opcode
private

Definition at line 1389 of file proto.hpp.

◆ peer_id_

int openvpn::ProtoContext::PacketType::peer_id_
private

Definition at line 1390 of file proto.hpp.


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