IT++ Logo Newcom Logo

itpp::TCP_Segment Class Reference

#include <itpp/protocol/tcp.h>

List of all members.

Public Member Functions

 TCP_Segment ()
 TCP_Segment (const Sequence_Number &sn_begin, const Sequence_Number &sn_end)
 TCP_Segment (const TCP_Segment &segment)
TCP_Segmentoperator= (const TCP_Segment &segment)
void set_begin (const Sequence_Number &sn)
void set_end (const Sequence_Number &sn)
void combine (const TCP_Segment &segment)
bool operator== (const TCP_Segment &segment) const
bool operator!= (const TCP_Segment &segment) const
bool can_be_combined (const TCP_Segment &segment) const
bool is_contained (const TCP_Segment &segment) const
unsigned length () const
Sequence_Number begin () const
Sequence_Number end () const

Protected Attributes

Sequence_Number seq_begin
 no. of first byte of segment
Sequence_Number seq_end
 no. of last byte of segment + 1

Friends

std::ostream & operator<< (std::ostream &os, const TCP_Segment &segment)


Detailed Description

TCP is a byte oriented protcol. Parts of the byte stream that is transmitted are called segments. They are identified by sequence numbers TCP_Segment contains fileds for the beginning sequence number and the sequence number of the first byte in the following segment (i.e. the sequence number of the last byte + 1). TCP_Segment provides several const methods to compare segments and to check whether they overlap. TCP_Segment is, e.g., used in TTCPPacket and TTCPReceiverBuffer.

See also:
Sequence_Number

TTCPPacket

TTCPReceiverBuffer

Author:
Lorang

Bodamer

Definition at line 117 of file tcp.h.


Member Data Documentation

Sequence_Number itpp::TCP_Segment::seq_begin [protected]

no. of first byte of segment

Definition at line 141 of file tcp.h.

Referenced by begin(), can_be_combined(), combine(), is_contained(), length(), operator!=(), itpp::operator<<(), operator=(), operator==(), set_begin(), set_end(), and TCP_Segment().

Sequence_Number itpp::TCP_Segment::seq_end [protected]

no. of last byte of segment + 1

Definition at line 142 of file tcp.h.

Referenced by can_be_combined(), combine(), end(), is_contained(), length(), operator!=(), itpp::operator<<(), operator=(), operator==(), set_begin(), set_end(), and TCP_Segment().


The documentation for this class was generated from the following files:
SourceForge Logo

Generated on Thu Aug 30 02:47:25 2007 for IT++ by Doxygen 1.5.3