Loading...
Searching...
No Matches
benchmark_udp.h File Reference

Continuously send UDP packets with configurable size and interval. More...

Detailed Description

Continuously send UDP packets with configurable size and interval.

Author
Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com

Definition in file benchmark_udp.h.

#include <stdbool.h>
#include <stdint.h>
+ Include dependency graph for benchmark_udp.h:

Go to the source code of this file.

Data Structures

struct  benchmark_msg_ping_t
 Benchmark message to the server. More...
 
struct  benchmark_msg_cmd_t
 Command response from the server. More...
 

Macros

#define BENCH_PAYLOAD_SIZE_MAX   (1024)
 Maximum size of a benchmark packet.
 
#define BENCH_SERVER_DEFAULT   "fd00:dead:beef::1"
 Default address of the benchmark server.
 
#define BENCH_PORT_DEFAULT   (12345)
 Default port of the benchmark server.
 
#define BENCH_FLAG_CMD_PKT   (1 << 0)
 Flag indicating the benchmark packet is a configuration command.
 
#define BENCH_MASK_COOKIE   (0xFFFFFF00)
 Configuration Cookie mask.
 

Functions

int benchmark_udp_start (const char *server, uint16_t port)
 This will start the benchmark process.
 
bool benchmark_udp_stop (void)
 Stop the benchmark process.