cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
Class TCP Segment. More...
#include <SimTcpSegment.hpp>
Class TCP Segment.
This class defines a TCP segment as a stream of 'AxisTcp' data chunks. Such a TCP segment consists of a double-ended queue that is used to accumulate all these data chunks. For the 10GbE MAC, the TCP chunks are 64 bits wide.
Definition at line 54 of file SimTcpSegment.hpp.
|
inline |
Definition at line 98 of file SimTcpSegment.hpp.
|
inline |
Definition at line 110 of file SimTcpSegment.hpp.
|
inline |
Append data payload to a TCP header.
[in] | pldStr | The payload to add as a string. |
[FIXME - Works only for a default header of 20 bytes]
Definition at line 238 of file SimTcpSegment.hpp.
|
inline |
Calculate the TCP checksum of the segment.
@Warning The TCP Length is the TCP header length plus the data length in octets (this is not an explicitly transmitted quantity, but is computed), and it does not count the 12 octets of the pseudo header.
@Warning The checksum is computed on the double-ended queue which holds the TCP chunks in little-endian order (see AxisTcp) !
Definition at line 300 of file SimTcpSegment.hpp.
|
inline |
Clone a TCP segment.
[in] | tcpSeg | A reference to the segment to clone. |
Definition at line 147 of file SimTcpSegment.hpp.
|
inline |
Clone the header of a TCP segment.
[in] | tcpSeg | A reference to the segment to clone. |
[FIXME - Works only for a default header of 20 bytes]
Definition at line 162 of file SimTcpSegment.hpp.
|
inline |
Dump this TCP segment as HEX and ASCII characters to screen.
Definition at line 383 of file SimTcpSegment.hpp.
|
inline |
Definition at line 188 of file SimTcpSegment.hpp.
|
inline |
Definition at line 183 of file SimTcpSegment.hpp.
|
inline |
Definition at line 196 of file SimTcpSegment.hpp.
|
inline |
Definition at line 221 of file SimTcpSegment.hpp.
|
inline |
Definition at line 211 of file SimTcpSegment.hpp.
|
inline |
Definition at line 203 of file SimTcpSegment.hpp.
|
inline |
Definition at line 209 of file SimTcpSegment.hpp.
|
inline |
Definition at line 207 of file SimTcpSegment.hpp.
|
inline |
Definition at line 205 of file SimTcpSegment.hpp.
|
inline |
Definition at line 213 of file SimTcpSegment.hpp.
|
inline |
Definition at line 200 of file SimTcpSegment.hpp.
|
inline |
Definition at line 187 of file SimTcpSegment.hpp.
|
inline |
Definition at line 228 of file SimTcpSegment.hpp.
|
inline |
Definition at line 230 of file SimTcpSegment.hpp.
|
inline |
Definition at line 192 of file SimTcpSegment.hpp.
|
inline |
Definition at line 182 of file SimTcpSegment.hpp.
|
inline |
Definition at line 225 of file SimTcpSegment.hpp.
|
inline |
Definition at line 217 of file SimTcpSegment.hpp.
Checks if the segment header fields are properly set.
[in] | callerName | The name of the calling function or process. |
[in] | ipSa | The IP source address. |
[in] | ipDa | The IP destination address. |
Definition at line 365 of file SimTcpSegment.hpp.
|
inline |
Definition at line 134 of file SimTcpSegment.hpp.
|
inline |
|
inline |
Definition at line 116 of file SimTcpSegment.hpp.
|
inline |
Recalculate the TCP checksum of this segment.
Definition at line 349 of file SimTcpSegment.hpp.
|
inline |
Definition at line 194 of file SimTcpSegment.hpp.
|
inline |
Definition at line 219 of file SimTcpSegment.hpp.
|
inline |
Definition at line 210 of file SimTcpSegment.hpp.
|
inline |
Definition at line 202 of file SimTcpSegment.hpp.
|
inline |
Definition at line 208 of file SimTcpSegment.hpp.
|
inline |
Definition at line 206 of file SimTcpSegment.hpp.
|
inline |
Definition at line 204 of file SimTcpSegment.hpp.
|
inline |
Definition at line 212 of file SimTcpSegment.hpp.
|
inline |
Definition at line 198 of file SimTcpSegment.hpp.
|
inline |
Definition at line 185 of file SimTcpSegment.hpp.
|
inline |
Definition at line 227 of file SimTcpSegment.hpp.
|
inline |
Definition at line 229 of file SimTcpSegment.hpp.
|
inline |
Definition at line 190 of file SimTcpSegment.hpp.
|
inline |
Definition at line 180 of file SimTcpSegment.hpp.
|
inline |
Definition at line 223 of file SimTcpSegment.hpp.
|
inline |
Definition at line 215 of file SimTcpSegment.hpp.
|
inline |
Definition at line 139 of file SimTcpSegment.hpp.
|
inline |
Dump an AxisTcp chunk to a file.
[in] | axisTcp | A pointer to the AxisTcp chunk to write. |
[in] | outFileStream | A reference to the file stream to write. |
Definition at line 431 of file SimTcpSegment.hpp.
|
inline |
Dump the payload of this segment as AxisTcp chunks into a file.
[in] | outFileStream | A reference to the file stream to write. |
Definition at line 468 of file SimTcpSegment.hpp.
|
inline |
Dump this TCP segment as raw AxisTcp chunks into a file.
[in] | outFileStream | A reference to the file stream to write. |
Definition at line 453 of file SimTcpSegment.hpp.