#include <compress.hpp>
|
enum | Type {
NONE
, COMP_STUB
, COMP_STUBv2
, ANY
,
ANY_LZO
, LZO
, LZO_SWAP
, LZO_STUB
,
LZ4
, LZ4v2
, SNAPPY
} |
|
Definition at line 147 of file compress.hpp.
◆ Type
Enumerator |
---|
NONE | |
COMP_STUB | |
COMP_STUBv2 | |
ANY | |
ANY_LZO | |
LZO | |
LZO_SWAP | |
LZO_STUB | |
LZ4 | |
LZ4v2 | |
SNAPPY | |
Definition at line 150 of file compress.hpp.
◆ CompressContext() [1/2]
openvpn::CompressContext::CompressContext |
( |
| ) |
|
|
inline |
◆ CompressContext() [2/2]
openvpn::CompressContext::CompressContext |
( |
const Type |
t, |
|
|
const bool |
asym |
|
) |
| |
|
inline |
◆ asym()
bool openvpn::CompressContext::asym |
( |
| ) |
const |
|
inline |
◆ compressor_available()
static bool openvpn::CompressContext::compressor_available |
( |
const Type |
t | ) |
|
|
inlinestatic |
◆ extra_payload_bytes()
unsigned int openvpn::CompressContext::extra_payload_bytes |
( |
| ) |
const |
|
inline |
◆ init_static()
static void openvpn::CompressContext::init_static |
( |
| ) |
|
|
inlinestatic |
◆ is_any_stub()
static bool openvpn::CompressContext::is_any_stub |
( |
const Type |
t | ) |
|
|
inlinestatic |
Checks if the compression type is one of the available stub modes
- Parameters
-
- Returns
- Returns true if the type is one of the *_STUB{,v2} types, otherwise false.
Definition at line 510 of file compress.hpp.
◆ method_to_string()
const char * openvpn::CompressContext::method_to_string |
( |
| ) |
const |
|
inline |
◆ new_compressor()
◆ OPENVPN_SIMPLE_EXCEPTION()
openvpn::CompressContext::OPENVPN_SIMPLE_EXCEPTION |
( |
compressor_unavailable |
| ) |
|
◆ options_string()
const char * openvpn::CompressContext::options_string |
( |
| ) |
const |
|
inline |
◆ parse_method()
static Type openvpn::CompressContext::parse_method |
( |
const std::string & |
method | ) |
|
|
inlinestatic |
◆ peer_info_string()
const char * openvpn::CompressContext::peer_info_string |
( |
| ) |
const |
|
inline |
◆ peer_info_string_v1()
const char * openvpn::CompressContext::peer_info_string_v1 |
( |
| ) |
const |
|
inline |
◆ str()
const char * openvpn::CompressContext::str |
( |
| ) |
const |
|
inline |
◆ stub()
static Type openvpn::CompressContext::stub |
( |
const Type |
t | ) |
|
|
inlinestatic |
◆ type()
Type openvpn::CompressContext::type |
( |
| ) |
const |
|
inline |
◆ asym_
bool openvpn::CompressContext::asym_ = false |
|
private |
◆ type_
Type openvpn::CompressContext::type_ = NONE |
|
private |
The documentation for this class was generated from the following file: