PcapPlusPlus
19.12
|
#include <TcpReassembly.h>
Public Member Functions | |
ConnectionData () | |
~ConnectionData () | |
ConnectionData (const ConnectionData &other) | |
ConnectionData & | operator= (const ConnectionData &other) |
void | setSrcIpAddress (const IPAddress *sourceIP) |
void | setDstIpAddress (const IPAddress *destIP) |
void | setStartTime (const timeval &startTime) |
void | setEndTime (const timeval &endTime) |
Public Attributes | |
IPAddress * | srcIP |
IPAddress * | dstIP |
uint16_t | srcPort |
uint16_t | dstPort |
uint32_t | flowKey |
timeval | startTime |
timeval | endTime |
Represents basic TCP/UDP + IP connection data
|
inline |
A c'tor for this struct that basically zeros all members
pcpp::ConnectionData::~ConnectionData | ( | ) |
A d'tor for this strcut. Notice it frees the memory of srcIP and dstIP members
pcpp::ConnectionData::ConnectionData | ( | const ConnectionData & | other | ) |
A copy constructor for this struct. Notice it clones ConnectionData::srcIP and ConnectionData::dstIP
ConnectionData& pcpp::ConnectionData::operator= | ( | const ConnectionData & | other | ) |
An assignment operator for this struct. Notice it clones ConnectionData::srcIP and ConnectionData::dstIP
|
inline |
Set destination IP
[in] | destIP | A pointer to the destination IP to set. Notice the IPAddress object will be cloned |
|
inline |
Set endTime of Connection
[in] | endTime | integer value |
|
inline |
Set source IP
[in] | sourceIP | A pointer to the source IP to set. Notice the IPAddress object will be cloned |
|
inline |
Set startTime of Connection
[in] | startTime | integer value |
IPAddress* pcpp::ConnectionData::dstIP |
Destination IP address
uint16_t pcpp::ConnectionData::dstPort |
Destination TCP/UDP port
timeval pcpp::ConnectionData::endTime |
End TimeStamp of the connection
uint32_t pcpp::ConnectionData::flowKey |
A 4-byte hash key representing the connection
IPAddress* pcpp::ConnectionData::srcIP |
Source IP address
uint16_t pcpp::ConnectionData::srcPort |
Source TCP/UDP port
timeval pcpp::ConnectionData::startTime |
Start TimeStamp of the connection