PcapPlusPlus  Next
pcpp::ConnectionData Struct Reference

#include <TcpReassembly.h>

Public Member Functions

 ConnectionData ()
 
void setStartTime (const std::chrono::time_point< std::chrono::high_resolution_clock > &startTimeValue)
 
void setEndTime (const std::chrono::time_point< std::chrono::high_resolution_clock > &endTimeValue)
 

Public Attributes

IPAddress srcIP
 
IPAddress dstIP
 
uint16_t srcPort
 
uint16_t dstPort
 
uint32_t flowKey
 
timeval startTime
 
timeval endTime
 
std::chrono::time_point< std::chrono::high_resolution_clock > startTimePrecise
 
std::chrono::time_point< std::chrono::high_resolution_clock > endTimePrecise
 

Detailed Description

Represents basic TCP/UDP + IP connection data

Constructor & Destructor Documentation

◆ ConnectionData()

pcpp::ConnectionData::ConnectionData ( )
inline

A c'tor for this struct that basically zeros all members

Member Function Documentation

◆ setEndTime()

void pcpp::ConnectionData::setEndTime ( const std::chrono::time_point< std::chrono::high_resolution_clock > &  endTimeValue)

Set the end time of the connection

Parameters
[in]endTimeValuetimestamp value

◆ setStartTime()

void pcpp::ConnectionData::setStartTime ( const std::chrono::time_point< std::chrono::high_resolution_clock > &  startTimeValue)

Set the start time of the connection

Parameters
[in]startTimeValuetimestamp value

Member Data Documentation

◆ dstIP

IPAddress pcpp::ConnectionData::dstIP

Destination IP address

◆ dstPort

uint16_t pcpp::ConnectionData::dstPort

Destination TCP/UDP port

◆ endTime

timeval pcpp::ConnectionData::endTime

End timestamp of the connection with microsecond precision

◆ endTimePrecise

std::chrono::time_point<std::chrono::high_resolution_clock> pcpp::ConnectionData::endTimePrecise

End timestamp of the connection with nanosecond precision

◆ flowKey

uint32_t pcpp::ConnectionData::flowKey

A 4-byte hash key representing the connection

◆ srcIP

IPAddress pcpp::ConnectionData::srcIP

Source IP address

◆ srcPort

uint16_t pcpp::ConnectionData::srcPort

Source TCP/UDP port

◆ startTime

timeval pcpp::ConnectionData::startTime

Start timestamp of the connection with microsecond precision

◆ startTimePrecise

std::chrono::time_point<std::chrono::high_resolution_clock> pcpp::ConnectionData::startTimePrecise

Start timestamp of the connection with nanosecond precision