|
OpenVPN 3 Core Library
|
Names every error the session reports, so a test can say why a packet was dropped. More...
Public Attributes | |
| std::string | names |
Private Member Functions | |
| void | error (const size_t type, const std::string *text=nullptr) override |
Additional Inherited Members | |
Public Types inherited from openvpn::SessionStats | |
| enum | Stats : unsigned int { BYTES_IN = 0 , BYTES_OUT , PACKETS_IN , PACKETS_OUT , TUN_BYTES_IN , TUN_BYTES_OUT , TUN_PACKETS_IN , TUN_PACKETS_OUT , N_STATS } |
| using | Ptr = RCPtr< SessionStats > |
| using | inc_callback_t = std::function< void(const count_t value)> |
Public Types inherited from openvpn::RC< thread_safe_refcount > | |
| using | Ptr = RCPtr< RC > |
Public Member Functions inherited from openvpn::SessionStats | |
| SessionStats () | |
| bool | verbose () const |
| void | inc_stat (const size_t type, const count_t value) |
| count_t | get_stat (const size_t type) const |
| count_t | get_stat_fast (const size_t type) const |
| void | update_last_packet_received (const Time &now) |
| const Time & | last_packet_received () const |
| void | dco_configure (SessionStats::DCOTransportSource *source) |
| bool | dco_update () |
| std::shared_ptr< inc_callback_t > | set_inc_callback (Stats stat, inc_callback_t callback) |
| Sets a callback to be triggered upon increment of stats. | |
Public Member Functions inherited from openvpn::RC< thread_safe_refcount > | |
| RC () noexcept=default | |
| RC (const RC &)=delete | |
| virtual | ~RC ()=default |
| RC & | operator= (const RC &)=delete |
| olong | use_count () const noexcept |
| Delegates call to RCImpl and returns the result. | |
Static Public Member Functions inherited from openvpn::SessionStats | |
| static const char * | stat_name (const size_t type) |
Static Public Member Functions inherited from openvpn::RC< thread_safe_refcount > | |
| static constexpr bool | is_thread_safe () |
| Delegates call to RCImpl and returns the result. | |
Protected Member Functions inherited from openvpn::SessionStats | |
| void | session_stats_set_verbose (const bool v) |
Names every error the session reports, so a test can say why a packet was dropped.
Definition at line 792 of file test_psid_cookie.cpp.
|
inlineoverrideprivatevirtual |
Reimplemented from openvpn::SessionStats.
Definition at line 798 of file test_psid_cookie.cpp.
| std::string RecordingStats::names |
Definition at line 795 of file test_psid_cookie.cpp.