PcapPlusPlus
|
#include <TcpReassembly.h>
Public Member Functions | |
TcpStreamData () | |
TcpStreamData (uint8_t *tcpData, size_t tcpDataLength, ConnectionData connData) | |
~TcpStreamData () | |
TcpStreamData (TcpStreamData &other) | |
TcpStreamData & | operator= (const TcpStreamData &other) |
uint8_t * | getData () |
size_t | getDataLength () |
ConnectionData | getConnectionData () |
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
pcpp::TcpStreamData::TcpStreamData | ( | ) |
A c'tor for this class that basically zeros all members
pcpp::TcpStreamData::TcpStreamData | ( | uint8_t * | tcpData, |
size_t | tcpDataLength, | ||
ConnectionData | connData | ||
) |
A c'tor for this class that get data from outside and set the internal members. Notice that when this class is destroyed it also frees the TCP data it stores
[in] | tcpData | A buffer containing the TCP data piece |
[in] | tcpDataLength | The length of the buffer |
[in] | connData | TCP connection information for this TCP data |
pcpp::TcpStreamData::~TcpStreamData | ( | ) |
A d'tor for this class
pcpp::TcpStreamData::TcpStreamData | ( | TcpStreamData & | other | ) |
A copy c'tor for this class. Notice the data buffer is copied from the source instance to this instance, so even if the source instance is destroyed the data in this instance stays valid. When this instance is destroyed it also frees the data buffer
[in] | other | The instance to copy from |
|
inline |
A getter for the connection data
|
inline |
A getter for the data buffer
|
inline |
A getter for buffer length
TcpStreamData& pcpp::TcpStreamData::operator= | ( | const TcpStreamData & | other | ) |
Overload of the assignment operator. Notice the data buffer is copied from the source instance to this instance, so even if the source instance is destroyed the data in this instance stays valid. When this instance is destroyed it also frees the data buffer
[in] | other | The instance to copy from |