OpenVPN 3 Core Library
|
#include <buflimit.hpp>
Public Member Functions | |
BufferLimit () | |
BufferLimit (const T max_lines_arg, const T max_bytes_arg) | |
virtual | ~BufferLimit ()=default |
void | set_max (const T max_lines_arg, const T max_bytes_arg) |
void | reset () |
void | add (const Buffer &buf) |
virtual void | bytes_exceeded ()=0 |
virtual void | lines_exceeded ()=0 |
Protected Attributes | |
T | max_lines |
T | max_bytes |
T | n_bytes |
T | n_lines |
Definition at line 20 of file buflimit.hpp.
|
inline |
Definition at line 23 of file buflimit.hpp.
|
inline |
Definition at line 29 of file buflimit.hpp.
|
virtualdefault |
|
inline |
|
pure virtual |
Implemented in openvpn::HTTPProxyTransport::Client::ProxyResponseLimit.
|
pure virtual |
Implemented in openvpn::HTTPProxyTransport::Client::ProxyResponseLimit.
|
inline |
|
inline |
|
protected |
Definition at line 77 of file buflimit.hpp.
|
protected |
Definition at line 76 of file buflimit.hpp.
|
protected |
Definition at line 78 of file buflimit.hpp.
|
protected |
Definition at line 79 of file buflimit.hpp.