TCP segment
More...
#include <tcp_segment.hh>
TCP segment
Definition at line 10 of file tcp_segment.hh.
◆ header() [1/2]
◆ header() [2/2]
const TCPHeader& TCPSegment::header |
( |
| ) |
const |
|
inline |
◆ length_in_sequence_space()
size_t TCPSegment::length_in_sequence_space |
( |
| ) |
const |
Segment's length in sequence space.
- Note
- Equal to payload length plus one byte if SYN is set, plus one byte if FIN is set
Definition at line 25 of file tcp_segment.cc.
◆ parse()
Parse the segment from a string.
- Parameters
-
[in] | buffer | string/Buffer to be parsed |
[in] | datagram_layer_checksum | pseudo-checksum from the lower-layer protocol |
Definition at line 12 of file tcp_segment.cc.
◆ payload() [1/2]
Buffer& TCPSegment::payload |
( |
| ) |
|
|
inline |
◆ payload() [2/2]
const Buffer& TCPSegment::payload |
( |
| ) |
const |
|
inline |
◆ serialize()
Serialize the segment to a string.
- Parameters
-
[in] | datagram_layer_checksum | pseudo-checksum from the lower-layer protocol |
Definition at line 30 of file tcp_segment.cc.
◆ _header
◆ _payload
Buffer TCPSegment::_payload {} |
|
private |
The documentation for this class was generated from the following files: