PacketTransmitterThread

Reference Documentation

Platform
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.6
Napatech Software Suite: PacketTransmitterThread Class Reference
PacketTransmitterThread Class Reference

Public Member Functions

 PacketTransmitterThread (uint64_t port, int64_t loops)
 
void run (void)
 
void join (void)
 

Data Fields

uint64_t transmittedPackets {0}
 
uint32_t txPort
 
int64_t txLoops
 
std::thread thr
 
const unsigned char NO_TS_INJECT = 0
 
const unsigned char TS_INJECT = 1
 
const unsigned char FCS_GOOD = 0
 
const unsigned char FCS_BAD = 1
 
const unsigned char FCS_RESERVED = 2
 
const unsigned char FCS_UNCHANGED = 3
 

Private Member Functions

void txPacket (NtNetStreamTx_t hNetTx, unsigned char tsi, unsigned char fcs)
 
void transmitPackets (void)
 

Detailed Description

Member Function Documentation

void PacketTransmitterThread::run ( void  )
inline
Examples:
net/timestamp_inject/timestamp_inject_example.cpp.

Definition at line 344 of file timestamp_inject_example.cpp.

Referenced by main().

void PacketTransmitterThread::join ( void  )
inline
Examples:
net/timestamp_inject/timestamp_inject_example.cpp.

Definition at line 348 of file timestamp_inject_example.cpp.

Referenced by main().

void PacketTransmitterThread::txPacket ( NtNetStreamTx_t  hNetTx,
unsigned char  tsi,
unsigned char  fcs 
)
inlineprivate

Definition at line 357 of file timestamp_inject_example.cpp.

void PacketTransmitterThread::transmitPackets ( void  )
inlineprivate
Examples:
net/timestamp_inject/timestamp_inject_example.cpp.

Definition at line 404 of file timestamp_inject_example.cpp.

Referenced by run().

Constructor & Destructor Documentation

PacketTransmitterThread::PacketTransmitterThread ( uint64_t  port,
int64_t  loops 
)
inline

Definition at line 340 of file timestamp_inject_example.cpp.

Field Documentation

uint64_t PacketTransmitterThread::transmittedPackets {0}

Definition at line 325 of file timestamp_inject_example.cpp.

uint32_t PacketTransmitterThread::txPort

Definition at line 326 of file timestamp_inject_example.cpp.

int64_t PacketTransmitterThread::txLoops

Definition at line 327 of file timestamp_inject_example.cpp.

std::thread PacketTransmitterThread::thr

Definition at line 328 of file timestamp_inject_example.cpp.

const unsigned char PacketTransmitterThread::NO_TS_INJECT = 0

Definition at line 331 of file timestamp_inject_example.cpp.

const unsigned char PacketTransmitterThread::TS_INJECT = 1

Definition at line 332 of file timestamp_inject_example.cpp.

const unsigned char PacketTransmitterThread::FCS_GOOD = 0

Definition at line 335 of file timestamp_inject_example.cpp.

const unsigned char PacketTransmitterThread::FCS_BAD = 1

Definition at line 336 of file timestamp_inject_example.cpp.

const unsigned char PacketTransmitterThread::FCS_RESERVED = 2

Definition at line 337 of file timestamp_inject_example.cpp.

const unsigned char PacketTransmitterThread::FCS_UNCHANGED = 3

Definition at line 338 of file timestamp_inject_example.cpp.


The documentation for this class was generated from the following file: