Go to the source code of this file.
Functions | |
bool | applicationRunning (void) |
void | applicationStop (void) |
void | handleErrorStatus (int status, const char *message) |
void | setHostLoopback (uint8_t port, bool enable) |
Macros | |
#define | COLOR_IPV4 0x1 |
#define | COLOR_IPV6 0x2 |
#define | KEY_SET_ID 4 |
#define | STREAM_ID_MISS 1 |
#define | STREAM_ID_UNHA 2 |
#define | KEY_ID_IPV4 1 |
#define | KEY_ID_IPV6 2 |
#define | ADAPTER_NO 0 |
Function Documentation
bool applicationRunning | ( | void | ) |
Check if application is still running.
- Returns
- true until applicationStop() has been called.
Definition at line 59 of file flowmatch_example_helper.cpp.
Referenced by taskReceiverCounter(), and taskReceiverMiss().
void applicationStop | ( | void | ) |
Sets flag that causes applicationRunning() to return false.
Definition at line 64 of file flowmatch_example_helper.cpp.
Referenced by main().
void handleErrorStatus | ( | int | status, |
const char * | message | ||
) |
Check if status is an error code, and if it is print the error description and then quit the application.
Definition at line 69 of file flowmatch_example_helper.cpp.
Referenced by assignNtplFilters(), main(), anonymous_namespace{flowmatch_example_ntpl.cpp}::ntplCall(), openAndClearFlowStats(), printAndCloseFlowStats(), setHostLoopback(), taskReceiverCounter(), taskReceiverMiss(), and taskTransmitter().
void setHostLoopback | ( | uint8_t | port, |
bool | enable | ||
) |
Configure a port to enable or disable host-loopback. This function is used to allow the example code to be independent of a specific test setup.
Definition at line 79 of file flowmatch_example_helper.cpp.
Referenced by main().
Macro Definition Documentation
#define COLOR_IPV4 0x1 |
Definition at line 47 of file flowmatch_example_helper.h.
Referenced by assignNtplFilters(), and taskReceiverMiss().
#define COLOR_IPV6 0x2 |
Definition at line 48 of file flowmatch_example_helper.h.
Referenced by assignNtplFilters(), and taskReceiverMiss().
#define KEY_SET_ID 4 |
Definition at line 50 of file flowmatch_example_helper.h.
Referenced by assignNtplFilters(), and taskReceiverMiss().
#define STREAM_ID_MISS 1 |
- Examples:
- flowmatch/flowmatch_example_main.cpp.
Definition at line 52 of file flowmatch_example_helper.h.
Referenced by assignNtplFilters(), and main().
#define STREAM_ID_UNHA 2 |
- Examples:
- flowmatch/flowmatch_example_main.cpp.
Definition at line 53 of file flowmatch_example_helper.h.
Referenced by assignNtplFilters(), and main().
#define KEY_ID_IPV4 1 |
Definition at line 55 of file flowmatch_example_helper.h.
Referenced by assignNtplFilters(), anonymous_namespace{flowmatch_example_receiver.cpp}::printFlowStreamInfo(), and taskReceiverMiss().
#define KEY_ID_IPV6 2 |
Definition at line 56 of file flowmatch_example_helper.h.
Referenced by assignNtplFilters(), and taskReceiverMiss().
#define ADAPTER_NO 0 |
Definition at line 58 of file flowmatch_example_helper.h.
Referenced by openAndClearFlowStats(), printAndCloseFlowStats(), and taskReceiverMiss().