OpenVPN 3 Core Library
|
#include <pktstream.hpp>
Public Member Functions | |
OPENVPN_SIMPLE_EXCEPTION (embedded_packet_size_error) | |
OPENVPN_SIMPLE_EXCEPTION (packet_not_fully_formed) | |
void | put (BufferAllocated &buf, const Frame::Context &frame_context) |
bool | ready () const |
void | get (BufferAllocated &ret) |
void | get (BufferAllocated &ret, const Frame::Context &frame_context) |
void | reset () |
Static Public Member Functions | |
static void | prepend_size (Buffer &buf) |
Private Member Functions | |
bool | declared_size_defined () const |
void | extract_size (Buffer &buf, const Frame::Context &frame_context) |
Static Private Member Functions | |
static size_t | network_to_host (const std::uint16_t value) |
static size_t | network_to_host (const std::uint32_t value) |
static void | host_to_network (std::uint16_t &result, const size_t value) |
static void | host_to_network (std::uint32_t &result, const size_t value) |
static bool | size_defined (const Buffer &buf) |
static size_t | read_size (Buffer &buf) |
static void | validate_size (const size_t size, const Frame::Context &frame_context) |
Private Attributes | |
size_t | declared_size = SIZE_UNDEF |
BufferAllocated | buffer |
Static Private Attributes | |
static constexpr size_t | SIZE_UNDEF = std::numeric_limits<size_t>::max() |
Definition at line 34 of file pktstream.hpp.
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
Definition at line 124 of file pktstream.hpp.
|
inlinestaticprivate |
|
inlinestaticprivate |
Definition at line 165 of file pktstream.hpp.
|
inlinestaticprivate |
|
inlinestaticprivate |
Definition at line 155 of file pktstream.hpp.
openvpn::PacketStream< SIZE_TYPE >::OPENVPN_SIMPLE_EXCEPTION | ( | embedded_packet_size_error | ) |
openvpn::PacketStream< SIZE_TYPE >::OPENVPN_SIMPLE_EXCEPTION | ( | packet_not_fully_formed | ) |
|
inlinestatic |
|
inline |
|
inlinestaticprivate |
|
inline |
|
inline |
Definition at line 138 of file pktstream.hpp.
|
inlinestaticprivate |
|
inlinestaticprivate |
|
private |
Definition at line 203 of file pktstream.hpp.
|
private |
Definition at line 202 of file pktstream.hpp.
|
staticconstexprprivate |
Definition at line 37 of file pktstream.hpp.