ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
common/limits.h
Go to the documentation of this file.
1
12
13#pragma once
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18/* Existing buffer budgets in bytes, including NUL for text storage. */
19#define MAX_CONFIGURED_STUN_SERVERS 4
20#define MAX_CONFIGURED_TURN_SERVERS 4
21
24#define IP_ADDRESS_BUFFER_SIZE 64
26#define PORT_STRING_BUFFER_SIZE 6
27
30#define SESSION_ID_SIZE 16
31
33#define MAX_SESSION_PARTICIPANTS 128
34
36#define MAX_SESSION_KEYS 32
37
40#define MAX_HOSTNAME_LENGTH 253
41
43#define MAX_HOSTNAME_LABEL_LENGTH 63
44
48#define HOSTNAME_BUFFER_SIZE 256
49
53#define MAX_URL_LENGTH 4095
54#define URL_BUFFER_SIZE (MAX_URL_LENGTH + 1)
55
57#define MEDIA_URL_CACHE_SIZE 2048
58#define MEDIA_STREAM_URL_SIZE 8192
59
60/* ============================================================================
61 * Multi-Client Constants
62 * ============================================================================
63 */
64
66#define MAX_DISPLAY_NAME_LEN 32
67
70#define MAX_CLIENT_ID_LEN 64
71
74#define MAX_CLIENTS MAX_SESSION_PARTICIPANTS
75
77#define DEFAULT_MAX_FPS 60
78
81#define FRAME_INTERVAL_MS (1000 / DEFAULT_MAX_FPS)
82
84#define FRAME_BUFFER_CAPACITY (DEFAULT_MAX_FPS / 4)
85
87
88#ifdef __cplusplus
89}
90#endif