#include <sessionstats.hpp>
|
static const char * | stat_name (const size_t type) |
|
static constexpr bool | is_thread_safe () |
| Delegates call to RCImpl and returns the result.
|
|
Definition at line 27 of file sessionstats.hpp.
◆ inc_callback_t
◆ Ptr
◆ Stats
Enumerator |
---|
BYTES_IN | |
BYTES_OUT | |
PACKETS_IN | |
PACKETS_OUT | |
TUN_BYTES_IN | |
TUN_BYTES_OUT | |
TUN_PACKETS_IN | |
TUN_PACKETS_OUT | |
N_STATS | |
Definition at line 33 of file sessionstats.hpp.
◆ SessionStats()
openvpn::SessionStats::SessionStats |
( |
| ) |
|
|
inline |
◆ dco_configure()
◆ dco_update()
bool openvpn::SessionStats::dco_update |
( |
| ) |
|
|
inline |
◆ error()
virtual void openvpn::SessionStats::error |
( |
const size_t |
type, |
|
|
const std::string * |
text = nullptr |
|
) |
| |
|
inlinevirtual |
◆ get_stat()
count_t openvpn::SessionStats::get_stat |
( |
const size_t |
type | ) |
const |
|
inline |
◆ get_stat_fast()
count_t openvpn::SessionStats::get_stat_fast |
( |
const size_t |
type | ) |
const |
|
inline |
◆ inc_stat()
void openvpn::SessionStats::inc_stat |
( |
const size_t |
type, |
|
|
const count_t |
value |
|
) |
| |
|
inline |
◆ last_packet_received()
const Time & openvpn::SessionStats::last_packet_received |
( |
| ) |
const |
|
inline |
◆ session_stats_set_verbose()
void openvpn::SessionStats::session_stats_set_verbose |
( |
const bool |
v | ) |
|
|
inlineprotected |
◆ set_inc_callback()
Sets a callback to be triggered upon increment of stats.
The callback can be removed by client code by deleting the returned shared pointer
- Parameters
-
stat | Type of stat to be tracked |
callback | Notification callback |
- Returns
- Shared pointer which maintains the lifetime of the callback
Definition at line 237 of file sessionstats.hpp.
◆ stat_name()
static const char * openvpn::SessionStats::stat_name |
( |
const size_t |
type | ) |
|
|
inlinestatic |
◆ update_last_packet_received()
void openvpn::SessionStats::update_last_packet_received |
( |
const Time & |
now | ) |
|
|
inline |
◆ verbose()
bool openvpn::SessionStats::verbose |
( |
| ) |
const |
|
inline |
◆ dco_
◆ inc_callbacks_
◆ last_packet_received_
Time openvpn::SessionStats::last_packet_received_ |
|
private |
◆ stats_
◆ verbose_
bool openvpn::SessionStats::verbose_ |
|
private |
The documentation for this class was generated from the following file: