PcapPlusPlus
21.05
|
#include <TcpReassembly.h>
Public Member Functions | |
TcpStreamData (const uint8_t *tcpData, size_t tcpDataLength, size_t missingBytes, const ConnectionData &connData) | |
const uint8_t * | getData () const |
size_t | getDataLength () const |
size_t | getMissingByteCount () const |
bool | isBytesMissing () const |
const ConnectionData & | getConnectionData () const |
When following a TCP connection each packet may contain a piece of the data transferred between the client and the server. This class represents these pieces: each instance of it contains a piece of data, usually extracted from a single packet, as well as information about the connection
|
inline |
A c'tor for this class that get data from outside and set the internal members
[in] | tcpData | A pointer to buffer containing the TCP data piece |
[in] | tcpDataLength | The length of the buffer |
[in] | missingBytes | The number of missing bytes due to packet loss. |
[in] | connData | TCP connection information for this TCP data |
|
inline |
A getter for the connection data
|
inline |
A getter for the data buffer
|
inline |
A getter for buffer length
|
inline |
A getter for missing byte count due to packet loss.
|
inline |
Determine if bytes are missing. getMissingByteCount can be called to determine the number of missing bytes.