#include <itpp/protocol/tcp.h>
Classes | |
struct | TDebugInfo |
ADD DOCUMENTATION HERE. More... | |
Public Member Functions | |
TCP_Packet () | |
ADD DOCUMENTATION HERE. | |
TCP_Packet (const TCP_Packet &packet) | |
ADD DOCUMENTATION HERE. | |
virtual | ~TCP_Packet () |
ADD DOCUMENTATION HERE. | |
virtual TCP_Packet & | clone () const |
ADD DOCUMENTATION HERE. | |
void | set_segment (const TCP_Segment &seg) |
ADD DOCUMENTATION HERE. More... | |
TCP_Segment | get_segment () const |
ADD DOCUMENTATION HERE. More... | |
void | set_wnd (unsigned val) |
ADD DOCUMENTATION HERE. More... | |
unsigned | get_wnd () const |
ADD DOCUMENTATION HERE. More... | |
void | set_ACK (Sequence_Number val) |
ADD DOCUMENTATION HERE. More... | |
Sequence_Number | get_ACK () const |
ADD DOCUMENTATION HERE. More... | |
void | set_session_id (int val) |
ADD DOCUMENTATION HERE. More... | |
int | get_session_id () const |
ADD DOCUMENTATION HERE. More... | |
void | set_destination_port (unsigned val) |
ADD DOCUMENTATION HERE. More... | |
unsigned | get_destination_port () const |
ADD DOCUMENTATION HERE. More... | |
void | set_source_port (unsigned val) |
ADD DOCUMENTATION HERE. More... | |
unsigned | get_source_port () const |
ADD DOCUMENTATION HERE. More... | |
void | set_info (unsigned ssThresh, unsigned recWnd, unsigned cWnd, double estRTT, Sequence_Number sndUna, Sequence_Number sndNxt, bool isRtx) |
ADD DOCUMENTATION HERE. | |
virtual void | print_header (std::ostream &) const |
ADD DOCUMENTATION HERE. | |
void | set_bit_size (int packet_size) |
set size of packet in bits More... | |
int | bit_size () |
get size of packet in bits More... | |
Protected Attributes | |
unsigned | fDestinationPort |
ADD DOCUMENTATION HERE. More... | |
unsigned | fSourcePort |
ADD DOCUMENTATION HERE. More... | |
TCP_Segment | fSegment |
data segment to be transmitted More... | |
Sequence_Number | fACK |
acknowledgment (next expected sn) More... | |
unsigned | fWnd |
window size (advertised by receiver) More... | |
int | fSessionId |
session identifier More... | |
TDebugInfo * | fInfo |
ADD DOCUMENTATION HERE. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &, TCP_Packet &) |
ADD DOCUMENTATION HERE. | |
TCP_Packet is an IP packet with additional TCP header fields. Messages of this type are used for communication between TCP sender and receiver (data and ACKs).
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
set size of packet in bits
Definition at line 64 of file packet.h.
References it_assert.
Referenced by itpp::Packet::Packet().
|
inlineinherited |
get size of packet in bits
Definition at line 67 of file packet.h.
Referenced by itpp::Front_Drop_Queue::pop(), itpp::Front_Drop_Queue::push(), and itpp::TCP_Server_Application::write_to_net().
|
protected |
ADD DOCUMENTATION HERE.
Definition at line 259 of file tcp.h.
Referenced by get_destination_port(), and set_destination_port().
|
protected |
ADD DOCUMENTATION HERE.
Definition at line 261 of file tcp.h.
Referenced by get_source_port(), and set_source_port().
|
protected |
data segment to be transmitted
Definition at line 263 of file tcp.h.
Referenced by get_segment(), and set_segment().
|
protected |
|
protected |
|
protected |
session identifier
Definition at line 266 of file tcp.h.
Referenced by get_session_id(), and set_session_id().
|
protected |
Generated on Sun Jun 5 2022 21:26:42 for IT++ by Doxygen 1.9.3