flowmatch_example_transmitter.cpp

Reference Documentation

Platform
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.15
Napatech Software Suite: examples/flowmatch/flowmatch_example_transmitter.cpp File Reference
flowmatch_example_transmitter.cpp File Reference
#include <nt.h>
#include <algorithm>
#include <chrono>
#include <cstdint>
#include <cstring>
#include <thread>
#include "flowmatch_example_helper.h"
#include "flowmatch_example_transmitter.h"

Go to the source code of this file.

Namespaces

 anonymous_namespace{flowmatch_example_transmitter.cpp}
 

Functions

void anonymous_namespace{flowmatch_example_transmitter.cpp}::swapIpAndPort (uint8_t *packet)
 
void taskTransmitter (uint32_t port, const uint8_t *packet, size_t packetSize, size_t frameSize, int numPackets, uint64_t perPacketDelay, bool swapIp)
 

Function Documentation

void taskTransmitter ( uint32_t  port,
const uint8_t *  packet,
size_t  packetSize,
size_t  frameSize,
int  numPackets,
uint64_t  perPacketDelay,
bool  swapIp 
)

Transmitter function needed for this example to send packets to itself. However, do look at the net/transmit examples instead, as they explain tx functionality better than this.

Examples:
flowmatch/flowmatch_example_main.cpp.

Definition at line 92 of file flowmatch_example_transmitter.cpp.

Referenced by main().