flowmatch_example_receiver.h

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_receiver.h File Reference
flowmatch_example_receiver.h File Reference
#include <atomic>
#include <cstdint>

Go to the source code of this file.

Functions

void taskReceiverMiss (const char *streamName, uint32_t streamId, std::atomic< uint64_t > *ipv4counter, std::atomic< uint64_t > *ipv6counter)
 
void taskReceiverCounter (const char *streamName, uint32_t streamId, std::atomic< uint64_t > *counter)
 

Function Documentation

void taskReceiverMiss ( const char *  streamName,
uint32_t  streamId,
std::atomic< uint64_t > *  ipv4counter,
std::atomic< uint64_t > *  ipv6counter 
)

Handle MISSED packages, and learn new flows based on received packages. This function is the main function of a separate thread.

Definition at line 127 of file flowmatch_example_receiver.cpp.

Referenced by main().

void taskReceiverCounter ( const char *  streamName,
uint32_t  streamId,
std::atomic< uint64_t > *  counter 
)

Count packages received in specified stream. This function is the main function of a separate thread. Note: The transmit function in this example does not cause enough traffic for any packages to be received as unhandled. However, if the tool pktgen is running while this example is run, it can generate unhandled packages.

Definition at line 237 of file flowmatch_example_receiver.cpp.

Referenced by main().