Sponge
CS144's user-space TCP library
Public Member Functions | Private Attributes | List of all members
WrappingInt32 Class Reference

A 32-bit integer, expressed relative to an arbitrary initial sequence number (ISN) More...

#include <wrapping_integers.hh>

Public Member Functions

 WrappingInt32 (uint32_t raw_value)
 Construct from a raw 32-bit unsigned integer. More...
 

Private Attributes

uint32_t _raw_value
 The raw 32-bit stored integer. More...
 

Detailed Description

A 32-bit integer, expressed relative to an arbitrary initial sequence number (ISN)

Note
This is used to express TCP sequence numbers (seqno) and acknowledgment numbers (ackno)

Definition at line 9 of file wrapping_integers.hh.

Constructor & Destructor Documentation

◆ WrappingInt32()

WrappingInt32::WrappingInt32 ( uint32_t  raw_value)
inlineexplicit

Construct from a raw 32-bit unsigned integer.

Definition at line 15 of file wrapping_integers.hh.

Member Data Documentation

◆ _raw_value

uint32_t WrappingInt32::_raw_value
private

The raw 32-bit stored integer.

Definition at line 11 of file wrapping_integers.hh.


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