OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::PacketIDControl Struct Reference

#include <packet_id_control.hpp>

Inheritance diagram for openvpn::PacketIDControl:
[legend]

Public Types

typedef std::uint32_t id_t
 
typedef std::uint32_t net_time_t
 
typedef Time::base_type time_t
 

Public Member Functions

bool is_valid () const
 
void reset ()
 
template<typename BufType >
void read (BufType &buf)
 
void write (Buffer &buf, const bool prepend) const
 
std::string str () const
 

Static Public Member Functions

static constexpr size_t size ()
 

Public Attributes

id_t id
 
time_t time
 

Static Public Attributes

static constexpr size_t idsize = sizeof(id_t) + sizeof(net_time_t)
 

Detailed Description

Definition at line 47 of file packet_id_control.hpp.

Member Typedef Documentation

◆ id_t

typedef std::uint32_t openvpn::PacketIDControl::id_t

Definition at line 49 of file packet_id_control.hpp.

◆ net_time_t

typedef std::uint32_t openvpn::PacketIDControl::net_time_t

Definition at line 50 of file packet_id_control.hpp.

◆ time_t

Member Function Documentation

◆ is_valid()

bool openvpn::PacketIDControl::is_valid ( ) const
inline

Definition at line 63 of file packet_id_control.hpp.

Here is the caller graph for this function:

◆ read()

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

Definition at line 75 of file packet_id_control.hpp.

Here is the caller graph for this function:

◆ reset()

void openvpn::PacketIDControl::reset ( )
inline

Definition at line 68 of file packet_id_control.hpp.

◆ size()

static constexpr size_t openvpn::PacketIDControl::size ( )
inlinestaticconstexpr

Definition at line 56 of file packet_id_control.hpp.

Here is the caller graph for this function:

◆ str()

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

Definition at line 106 of file packet_id_control.hpp.

Here is the caller graph for this function:

◆ write()

void openvpn::PacketIDControl::write ( Buffer buf,
const bool  prepend 
) const
inline

Definition at line 87 of file packet_id_control.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ id

id_t openvpn::PacketIDControl::id

Definition at line 53 of file packet_id_control.hpp.

◆ idsize

constexpr size_t openvpn::PacketIDControl::idsize = sizeof(id_t) + sizeof(net_time_t)
staticconstexpr

Definition at line 61 of file packet_id_control.hpp.

◆ time

time_t openvpn::PacketIDControl::time

Definition at line 54 of file packet_id_control.hpp.


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