defines.h 650 Bytes
Newer Older
1 2 3
#ifndef PRRT_DEFINES_H
#define PRRT_DEFINES_H

4
#ifndef MAX
5
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
6 7 8
#endif

#ifndef MIN
9
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
10
#endif
11 12 13 14 15

#define PRRT_MAX_RECEIVER_COUNT 255

#define MAX_PAYLOAD_LENGTH 65528 // maximum UDP packet length (2^16 - 8)

16 17
#define SEQNO_SPACE UINT16_MAX // 2**16 as seqno is uint16_t

18 19
#define TIMESTAMP_SPACE UINT32_MAX

20 21
#define GF_BITS 8

22 23
#define K_START 4
#define N_START 7
24 25
#define N_P_START 1

26 27
#define RRT_ALPHA 0.125

Andreas Schmidt's avatar
Andreas Schmidt committed
28 29 30 31 32
// Uncomment the line below if you are compiling on Windows.
// #define WINDOWS
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
33

34
#endif //PRRT_DEFINES_H