ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
discovery-service/main.h
Go to the documentation of this file.
1#pragma once
2
58
59/* Storage capacities in elements; text buffers include the terminating NUL. */
60#define DISCOVERY_SERVICE_MAIN_ADDRESS_BUFFER_SIZE 256
61#define DISCOVERY_SERVICE_MAIN_ADDRESS6_BUFFER_SIZE 256
62#define DISCOVERY_SERVICE_MAIN_DATABASE_PATH_BUFFER_SIZE 512
63#define DISCOVERY_SERVICE_MAIN_KEY_PATH_BUFFER_SIZE 512
64#define DISCOVERY_SERVICE_MAIN_LOG_FILE_BUFFER_SIZE 512
65#define DISCOVERY_SERVICE_MAIN_TURN_SECRET_BUFFER_SIZE 256
66
67#include <stdint.h>
68#include <stdbool.h>
69#include <ascii-chat/common.h>
72
102
114int acds_main(void);
#define DISCOVERY_SERVICE_MAIN_ADDRESS6_BUFFER_SIZE
#define DISCOVERY_SERVICE_MAIN_DATABASE_PATH_BUFFER_SIZE
#define DISCOVERY_SERVICE_MAIN_TURN_SECRET_BUFFER_SIZE
#define DISCOVERY_SERVICE_MAIN_LOG_FILE_BUFFER_SIZE
#define DISCOVERY_SERVICE_MAIN_KEY_PATH_BUFFER_SIZE
int acds_main(void)
This is the handoff point for acds config. Callers fill port, log_level, require_server_identity,...
#define DISCOVERY_SERVICE_MAIN_ADDRESS_BUFFER_SIZE
unsigned char uint8_t
#define MAX_CONFIGURED_TURN_SERVERS
#define MAX_CONFIGURED_STUN_SERVERS
log_level_t
Logging levels enumeration.
Definition types.h:33
stun_server_t
Definition stun.h:78
turn_server_t
Definition turn.h:106
⚙️ Common definitions, error codes, macros, and types shared throughout the application
Discovery server configuration.
char address[256]
IPv4 bind address (empty = all interfaces).
bool require_server_verify
ACDS policy: require servers to verify client identity during handshake.
char database_path[512]
SQLite database path.
bool require_server_identity
Require servers to provide signed identity when creating sessions.
uint8_t turn_count
Number of configured TURN servers (0-4).
int port
TCP listen port (default 27225).
char turn_secret[256]
(HMAC-SHA1)
uint8_t stun_count
Number of configured STUN servers (0-4).
char key_path[512]
Ed25519 identity key file path.
stun_server_t stun_servers[MAX_CONFIGURED_STUN_SERVERS]
STUN server configurations.
char log_file[512]
Log file path (empty = stderr).
char address6[256]
IPv6 bind address (empty = all interfaces).
bool require_client_identity
Require clients to provide signed identity when joining sessions.
bool require_client_verify
ACDS policy: require clients to verify server identity during handshake.
turn_server_t turn_servers[MAX_CONFIGURED_TURN_SERVERS]
TURN server configurations.
log_level_t log_level
Logging verbosity level.