#include <itpp/protocol/tcp.h>
Inheritance diagram for itpp::TCP_Packet:
Public Member Functions | |
TCP_Packet (const TCP_Packet &packet) | |
virtual TCP_Packet & | clone () const |
void | set_segment (const TCP_Segment &seg) |
TCP_Segment | get_segment () const |
void | set_wnd (unsigned val) |
unsigned | get_wnd () const |
void | set_ACK (Sequence_Number val) |
Sequence_Number | get_ACK () const |
void | set_session_id (int val) |
int | get_session_id () const |
void | set_destination_port (unsigned val) |
unsigned | get_destination_port () const |
void | set_source_port (unsigned val) |
unsigned | get_source_port () const |
void | set_info (unsigned ssThresh, unsigned recWnd, unsigned cWnd, double estRTT, Sequence_Number sndUna, Sequence_Number sndNxt, bool isRtx) |
virtual void | print_header (std::ostream &out) const |
void | set_bit_size (int packet_size) |
set size of packet in bits | |
int | bit_size () |
get size of packet in bits | |
Protected Attributes | |
unsigned | fDestinationPort |
unsigned | fSourcePort |
TCP_Segment | fSegment |
data segment to be transmitted | |
Sequence_Number | fACK |
acknowledgment (next expected sn) | |
unsigned | fWnd |
window size (advertised by receiver) | |
int | fSessionId |
session identifier | |
TDebugInfo * | fInfo |
Friends | |
std::ostream & | operator<< (std::ostream &, TCP_Packet &) |
The class contains a segment of type TCP_Segment with sequence numbers for begin and end of the segment. This is only used in data packets (i.e. from sender to receiver) while there are also fields containing sequence number for the next expected segment (used to ACK data packets, i.e. from receiver to sender) and for the advertised receiver window.
TCP_Packet has an additional field for the session id which my be compared with the pair (source port, destination port) in a real world TCP/IP packet.
Furthermore, some debug info containing state information for TCP sender or receiver may be attached to the message.
TCP_Packet::TDebugInfo
Lorang
Bodamer
Definition at line 167 of file tcp.h.
|
set size of packet in bits
Definition at line 52 of file packet.h. References it_assert. |
|
get size of packet in bits
|
|
data segment to be transmitted
|
|
acknowledgment (next expected sn)
|
|
window size (advertised by receiver)
|
|
session identifier
|
Generated on Fri Jan 11 08:51:43 2008 for IT++ by Doxygen 1.3.9.1