OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::ReliableSendTemplate< PACKET > Class Template Reference

#include <relsend.hpp>

Collaboration diagram for openvpn::ReliableSendTemplate< PACKET >:
[legend]

Classes

class  Message
 

Public Types

typedef reliable::id_t id_t
 

Public Member Functions

 ReliableSendTemplate ()
 
 ReliableSendTemplate (const id_t span, id_t start_at=0)
 
void init (const id_t span, id_t start_at=0)
 
id_t head_id () const
 
id_t tail_id () const
 
id_t span () const
 
Messageref_by_id (const id_t id)
 
Time::Duration until_retransmit (const Time &now)
 
unsigned int n_unacked ()
 
Messagesend (const Time &now, const Time::Duration &tls_timeout)
 
bool ready () const
 
void ack (const id_t id)
 

Private Attributes

id_t next
 
MessageWindow< Message, id_twindow_
 

Detailed Description

template<typename PACKET>
class openvpn::ReliableSendTemplate< PACKET >

Definition at line 26 of file relsend.hpp.

Member Typedef Documentation

◆ id_t

template<typename PACKET >
typedef reliable::id_t openvpn::ReliableSendTemplate< PACKET >::id_t

Definition at line 29 of file relsend.hpp.

Constructor & Destructor Documentation

◆ ReliableSendTemplate() [1/2]

template<typename PACKET >
openvpn::ReliableSendTemplate< PACKET >::ReliableSendTemplate ( )
inline

Definition at line 59 of file relsend.hpp.

◆ ReliableSendTemplate() [2/2]

template<typename PACKET >
openvpn::ReliableSendTemplate< PACKET >::ReliableSendTemplate ( const id_t  span,
id_t  start_at = 0 
)
inline

Definition at line 63 of file relsend.hpp.

Member Function Documentation

◆ ack()

template<typename PACKET >
void openvpn::ReliableSendTemplate< PACKET >::ack ( const id_t  id)
inline

Definition at line 147 of file relsend.hpp.

Here is the caller graph for this function:

◆ head_id()

template<typename PACKET >
id_t openvpn::ReliableSendTemplate< PACKET >::head_id ( ) const
inline

Definition at line 76 of file relsend.hpp.

Here is the caller graph for this function:

◆ init()

template<typename PACKET >
void openvpn::ReliableSendTemplate< PACKET >::init ( const id_t  span,
id_t  start_at = 0 
)
inline

Definition at line 68 of file relsend.hpp.

Here is the caller graph for this function:

◆ n_unacked()

template<typename PACKET >
unsigned int openvpn::ReliableSendTemplate< PACKET >::n_unacked ( )
inline

Definition at line 118 of file relsend.hpp.

Here is the caller graph for this function:

◆ ready()

template<typename PACKET >
bool openvpn::ReliableSendTemplate< PACKET >::ready ( ) const
inline

Definition at line 141 of file relsend.hpp.

Here is the caller graph for this function:

◆ ref_by_id()

template<typename PACKET >
Message & openvpn::ReliableSendTemplate< PACKET >::ref_by_id ( const id_t  id)
inline

Definition at line 95 of file relsend.hpp.

Here is the caller graph for this function:

◆ send()

template<typename PACKET >
Message & openvpn::ReliableSendTemplate< PACKET >::send ( const Time now,
const Time::Duration &  tls_timeout 
)
inline

Definition at line 132 of file relsend.hpp.

Here is the caller graph for this function:

◆ span()

template<typename PACKET >
id_t openvpn::ReliableSendTemplate< PACKET >::span ( ) const
inline

Definition at line 88 of file relsend.hpp.

Here is the caller graph for this function:

◆ tail_id()

template<typename PACKET >
id_t openvpn::ReliableSendTemplate< PACKET >::tail_id ( ) const
inline

Definition at line 82 of file relsend.hpp.

Here is the caller graph for this function:

◆ until_retransmit()

template<typename PACKET >
Time::Duration openvpn::ReliableSendTemplate< PACKET >::until_retransmit ( const Time now)
inline

Definition at line 101 of file relsend.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ next

template<typename PACKET >
id_t openvpn::ReliableSendTemplate< PACKET >::next
private

Definition at line 153 of file relsend.hpp.

◆ window_

template<typename PACKET >
MessageWindow<Message, id_t> openvpn::ReliableSendTemplate< PACKET >::window_
private

Definition at line 154 of file relsend.hpp.


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