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

#include <continuation_fragment.hpp>

Inheritance diagram for openvpn::PushContinuationFragment:
[legend]
Collaboration diagram for openvpn::PushContinuationFragment:
[legend]

Public Member Functions

 OPENVPN_EXCEPTION (push_continuation_fragment_error)
 
 PushContinuationFragment (const ConstBuffer &buf, const std::string &prefix)
 

Static Public Member Functions

static bool should_fragment (const ConstBuffer &buf)
 
static BufferPtr defragment (const std::vector< BufferPtr > &bv, const std::string &prefix)
 

Static Public Attributes

static constexpr size_t FRAGMENT_SIZE = 1023
 

Private Member Functions

void append_new_buffer (const std::string &prefix)
 

Static Private Member Functions

static void append_push_continuation (Buffer &buf, bool end)
 

Detailed Description

Definition at line 29 of file continuation_fragment.hpp.

Constructor & Destructor Documentation

◆ PushContinuationFragment()

openvpn::PushContinuationFragment::PushContinuationFragment ( const ConstBuffer buf,
const std::string &  prefix 
)
inline

Definition at line 44 of file continuation_fragment.hpp.

Member Function Documentation

◆ append_new_buffer()

void openvpn::PushContinuationFragment::append_new_buffer ( const std::string &  prefix)
inlineprivate

Definition at line 124 of file continuation_fragment.hpp.

Here is the caller graph for this function:

◆ append_push_continuation()

static void openvpn::PushContinuationFragment::append_push_continuation ( Buffer buf,
bool  end 
)
inlinestaticprivate

Definition at line 133 of file continuation_fragment.hpp.

Here is the caller graph for this function:

◆ defragment()

static BufferPtr openvpn::PushContinuationFragment::defragment ( const std::vector< BufferPtr > &  bv,
const std::string &  prefix 
)
inlinestatic

Definition at line 80 of file continuation_fragment.hpp.

Here is the caller graph for this function:

◆ OPENVPN_EXCEPTION()

openvpn::PushContinuationFragment::OPENVPN_EXCEPTION ( push_continuation_fragment_error  )

◆ should_fragment()

static bool openvpn::PushContinuationFragment::should_fragment ( const ConstBuffer buf)
inlinestatic

Definition at line 38 of file continuation_fragment.hpp.

Member Data Documentation

◆ FRAGMENT_SIZE

constexpr size_t openvpn::PushContinuationFragment::FRAGMENT_SIZE = 1023
staticconstexpr

Definition at line 34 of file continuation_fragment.hpp.


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