ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
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/* Existing buffer budgets in bytes, including NUL for text storage. */
15#define MAX_CONFIGURED_STUN_SERVERS 4
16#define MAX_CONFIGURED_TURN_SERVERS 4
17
19#define IP_ADDRESS_BUFFER_SIZE 64
21#define PORT_STRING_BUFFER_SIZE 6
22
24#define SESSION_ID_SIZE 16
25
27#define MAX_SESSION_PARTICIPANTS 128
28
30#define MAX_SESSION_KEYS 32
31
34#define MAX_HOSTNAME_LENGTH 253
35
37#define MAX_HOSTNAME_LABEL_LENGTH 63
38
41#define HOSTNAME_BUFFER_SIZE 256
42
45#define MAX_URL_LENGTH 4095
46#define URL_BUFFER_SIZE (MAX_URL_LENGTH + 1)
47
49#define MEDIA_URL_CACHE_SIZE 2048
50#define MEDIA_STREAM_URL_SIZE 8192
51
52/* ============================================================================
53 * Multi-Client Constants
54 * ============================================================================ */
55
57#define MAX_DISPLAY_NAME_LEN 32
58
60#define MAX_CLIENT_ID_LEN 64
61
63#define MAX_CLIENTS MAX_SESSION_PARTICIPANTS
64
66#define DEFAULT_MAX_FPS 60
67
69#define FRAME_INTERVAL_MS (1000 / DEFAULT_MAX_FPS)
70
72#define FRAME_BUFFER_CAPACITY (DEFAULT_MAX_FPS / 4)
73