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 packets, and learn new flows based on received packets. This function is the main function of a separate thread.
Definition at line 126 of file flowmatch_example_receiver.cpp.
Referenced by main().
| void taskReceiverCounter | ( | const char * | streamName, |
| uint32_t | streamId, | ||
| std::atomic< uint64_t > * | counter | ||
| ) |
Count packets 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 packets to be received as unhandled. However, if the tool pktgen is running while this example is run, it can generate unhandled packets.
Definition at line 239 of file flowmatch_example_receiver.cpp.
Referenced by main().