libtins  4.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Types | Public Member Functions | List of all members
Tins::TCPIP::AckedRange Class Reference

Represents an acknowledged segment range. More...

#include <ack_tracker.h>

Public Types

typedef
boost::icl::discrete_interval
< uint32_t > 
interval_type
 

Public Member Functions

 AckedRange (uint32_t first, uint32_t last)
 Constructs an acked range. More...
 
interval_type next ()
 Gets the next acked interval in this range. More...
 
bool has_next () const
 
uint32_t first () const
 
uint32_t last () const
 

Detailed Description

Represents an acknowledged segment range.

The interval represented by this range is a closed interval [first, last].

Constructor & Destructor Documentation

Tins::TCPIP::AckedRange::AckedRange ( uint32_t  first,
uint32_t  last 
)

Constructs an acked range.

Parameters
firstThe first acked byte
lastThe last acked byte (inclusive)

Member Function Documentation

uint32_t Tins::TCPIP::AckedRange::first ( ) const

Gets the first index acked by this range

bool Tins::TCPIP::AckedRange::has_next ( ) const

Indicates whether there is still some non-consumed acked-interval in this range

uint32_t Tins::TCPIP::AckedRange::last ( ) const

Gets the last index acked by this range

interval_type Tins::TCPIP::AckedRange::next ( )

Gets the next acked interval in this range.

If has_next() == false, then this returns an empty interval


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