Document of c-modernization-kit (porter) 1.0.0

Loading...
Searching...
No Matches
porter_const.h
Go to the documentation of this file.
1
13
14#ifndef PORTER_CONST_H
15#define PORTER_CONST_H
16
23#define POTR_SEND_COMPRESS 0x0001U
24#define POTR_SEND_BLOCKING 0x0002U
26
30#define POTR_SUCCESS 0
31#define POTR_ERROR -1
32#define POTR_ERROR_DISCONNECTED 1
34
41#define POTR_FLAG_DATA 0x0001U
42#define POTR_FLAG_NACK 0x0002U
43#define POTR_FLAG_PING 0x0004U
44#define POTR_FLAG_REJECT 0x0008U
45#define POTR_FLAG_FIN 0x0010U
46#define POTR_FLAG_ENCRYPTED 0x0020U
55
63#define POTR_FLAG_MORE_FRAG 0x0001U
64#define POTR_FLAG_COMPRESSED 0x0002U
66
70#define POTR_DEFAULT_WINDOW_SIZE 16U
71#define POTR_DEFAULT_MAX_PAYLOAD 1400U
72#define POTR_DEFAULT_TTL 1U
73#define POTR_DEFAULT_HEALTH_INTERVAL_MS 0U
74#define POTR_DEFAULT_HEALTH_TIMEOUT_MS 0U
75#define POTR_DEFAULT_PACK_WAIT_MS 0U
76#define POTR_DEFAULT_RECONNECT_INTERVAL_MS 5000U
77#define POTR_DEFAULT_CONNECT_TIMEOUT_MS 10000U
79
85#define POTR_CRYPTO_KEY_SIZE 32U
86#define POTR_CRYPTO_NONCE_SIZE 12U
87#define POTR_CRYPTO_TAG_SIZE 16U
89
93#define POTR_MAX_ADDR_LEN 64U
94#define POTR_MAX_PAYLOAD 65507U
95#define POTR_MAX_WINDOW_SIZE 256U
96#define POTR_MAX_SERVICES 64U
97#define POTR_MAX_MESSAGE_SIZE 65535U
98#define POTR_SEND_QUEUE_DEPTH 1024U
99#define POTR_PAYLOAD_ELEM_HDR_SIZE 6U
100#define POTR_MAX_PATH 4U
102
103#endif /* PORTER_CONST_H */