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

#include <compstub.hpp>

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

Public Member Functions

 CompressStubV2 (const Frame::Ptr &frame, const SessionStats::Ptr &stats)
 
const char * name () const override
 
void compress (BufferAllocated &buf, const bool hint) override
 
void decompress (BufferAllocated &buf) override
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Additional Inherited Members

- Public Types inherited from openvpn::Compress
typedef RCPtr< CompressPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 
- Static Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 
- Static Public Member Functions inherited from openvpn::logging::LoggingMixin< OPENVPN_DEBUG_COMPRESS, logging::LOG_LEVEL_TRACE, Compress >
static int log_level ()
 return the current logging level for all logging
 
static void set_log_level (int level)
 set the log level for all loggigng
 
- Static Public Attributes inherited from openvpn::logging::LoggingMixin< OPENVPN_DEBUG_COMPRESS, logging::LOG_LEVEL_TRACE, Compress >
static constexpr int max_log_level
 
static constexpr int default_log_level
 
- Protected Types inherited from openvpn::Compress
enum  { NO_COMPRESS = 0xFA , NO_COMPRESS_SWAP = 0xFB }
 
enum  { COMPRESS_V2_ESCAPE = 0x50 , OVPN_COMPv2_NONE = 0 , OVPN_COMPv2_LZ4 = 1 }
 
- Protected Member Functions inherited from openvpn::Compress
 Compress (const Frame::Ptr &frame_arg, const SessionStats::Ptr &stats_arg)
 
void error (BufferAllocated &buf)
 
void do_swap (Buffer &buf, unsigned char op)
 
void do_unswap (Buffer &buf)
 
void v2_push (Buffer &buf, unsigned char value)
 
int v2_pull (Buffer &buf)
 
- Protected Attributes inherited from openvpn::Compress
Frame::Ptr frame
 
SessionStats::Ptr stats
 
- Static Protected Attributes inherited from openvpn::logging::LoggingMixin< OPENVPN_DEBUG_COMPRESS, logging::LOG_LEVEL_TRACE, Compress >
static logging::Logger< DEFAULT_LOG_LEVEL, MAX_LEVEL > log_
 

Detailed Description

Definition at line 96 of file compstub.hpp.

Constructor & Destructor Documentation

◆ CompressStubV2()

openvpn::CompressStubV2::CompressStubV2 ( const Frame::Ptr frame,
const SessionStats::Ptr stats 
)
inline

Definition at line 99 of file compstub.hpp.

Member Function Documentation

◆ compress()

void openvpn::CompressStubV2::compress ( BufferAllocated buf,
const bool  hint 
)
inlineoverridevirtual

Implements openvpn::Compress.

Definition at line 110 of file compstub.hpp.

◆ decompress()

void openvpn::CompressStubV2::decompress ( BufferAllocated buf)
inlineoverridevirtual

Implements openvpn::Compress.

Definition at line 120 of file compstub.hpp.

◆ name()

const char * openvpn::CompressStubV2::name ( ) const
inlineoverridevirtual

Implements openvpn::Compress.

Definition at line 105 of file compstub.hpp.


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