flowmatch_example_transmitter.cpp

Reference Documentation

Platform
Intel® PAC
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.10
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 *package)
 
void taskTransmitter (uint32_t port, const uint8_t *package, size_t packageSize, size_t frameSize, int numPackages, uint64_t perPackageDelay, bool swapIp)
 

Function Documentation

void taskTransmitter ( uint32_t  port,
const uint8_t *  package,
size_t  packageSize,
size_t  frameSize,
int  numPackages,
uint64_t  perPackageDelay,
bool  swapIp 
)

Transmitter function needed for this example to send packages 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 93 of file flowmatch_example_transmitter.cpp.

Referenced by main().