OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::BufferLimit< T > Class Template Referenceabstract

#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

max_lines
 
max_bytes
 
n_bytes
 
n_lines
 

Detailed Description

template<typename T>
class openvpn::BufferLimit< T >

Definition at line 20 of file buflimit.hpp.

Constructor & Destructor Documentation

◆ BufferLimit() [1/2]

template<typename T >
openvpn::BufferLimit< T >::BufferLimit ( )
inline

Definition at line 23 of file buflimit.hpp.

◆ BufferLimit() [2/2]

template<typename T >
openvpn::BufferLimit< T >::BufferLimit ( const T  max_lines_arg,
const T  max_bytes_arg 
)
inline

Definition at line 29 of file buflimit.hpp.

◆ ~BufferLimit()

template<typename T >
virtual openvpn::BufferLimit< T >::~BufferLimit ( )
virtualdefault

Member Function Documentation

◆ add()

template<typename T >
void openvpn::BufferLimit< T >::add ( const Buffer buf)
inline

Definition at line 50 of file buflimit.hpp.

Here is the caller graph for this function:

◆ bytes_exceeded()

template<typename T >
virtual void openvpn::BufferLimit< T >::bytes_exceeded ( )
pure virtual

Implemented in openvpn::HTTPProxyTransport::Client::ProxyResponseLimit.

Here is the caller graph for this function:

◆ lines_exceeded()

template<typename T >
virtual void openvpn::BufferLimit< T >::lines_exceeded ( )
pure virtual

Implemented in openvpn::HTTPProxyTransport::Client::ProxyResponseLimit.

Here is the caller graph for this function:

◆ reset()

template<typename T >
void openvpn::BufferLimit< T >::reset ( )
inline

Definition at line 45 of file buflimit.hpp.

Here is the caller graph for this function:

◆ set_max()

template<typename T >
void openvpn::BufferLimit< T >::set_max ( const T  max_lines_arg,
const T  max_bytes_arg 
)
inline

Definition at line 38 of file buflimit.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ max_bytes

template<typename T >
T openvpn::BufferLimit< T >::max_bytes
protected

Definition at line 77 of file buflimit.hpp.

◆ max_lines

template<typename T >
T openvpn::BufferLimit< T >::max_lines
protected

Definition at line 76 of file buflimit.hpp.

◆ n_bytes

template<typename T >
T openvpn::BufferLimit< T >::n_bytes
protected

Definition at line 78 of file buflimit.hpp.

◆ n_lines

template<typename T >
T openvpn::BufferLimit< T >::n_lines
protected

Definition at line 79 of file buflimit.hpp.


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