ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
acds_server_t Struct Reference

Discovery server state. More...

#include <src/discovery-service/server.h>

Data Fields

tcp_server_t tcp_server
 TCP server abstraction.
 
uint8_t identity_public [32]
 Ed25519 public key.
 
uint8_t identity_secret [64]
 Ed25519 secret key.
 
sqlite3 * db
 SQLite database handle.
 
struct rate_limiter_srate_limiter
 SQLite-backed rate limiter.
 
migration_context_t active_migrations [32]
 Slots for up to 32 concurrent migrations.
 
size_t num_active_migrations
 Number of active migrations.
 
thread_pool_t * worker_pool
 Thread pool for background workers.
 
atomic_bool shutdown
 Shutdown flag for worker threads.
 
acds_config_t config
 Runtime configuration.
 

Detailed Description

Discovery server state.

Contains all runtime state for the discovery server including network sockets, identity keys, and database. Sessions are stored directly in SQLite as the single source of truth.

Definition at line 94 of file discovery-service/server.h.

Field Documentation

◆ active_migrations

migration_context_t acds_server_t::active_migrations[32]

Slots for up to 32 concurrent migrations.

Definition at line 108 of file discovery-service/server.h.

◆ config

acds_config_t acds_server_t::config

Runtime configuration.

Definition at line 116 of file discovery-service/server.h.

Referenced by acds_server_init(), and acds_server_run().

◆ db

sqlite3* acds_server_t::db

SQLite database handle.

Definition at line 102 of file discovery-service/server.h.

Referenced by acds_main(), acds_server_init(), and acds_server_shutdown().

◆ identity_public

uint8_t acds_server_t::identity_public[32]

Ed25519 public key.

Definition at line 98 of file discovery-service/server.h.

Referenced by acds_client_handler().

◆ identity_secret

uint8_t acds_server_t::identity_secret[64]

Ed25519 secret key.

Definition at line 99 of file discovery-service/server.h.

Referenced by acds_client_handler().

◆ num_active_migrations

size_t acds_server_t::num_active_migrations

Number of active migrations.

Definition at line 109 of file discovery-service/server.h.

◆ rate_limiter

struct rate_limiter_s* acds_server_t::rate_limiter

SQLite-backed rate limiter.

Definition at line 105 of file discovery-service/server.h.

Referenced by acds_server_init(), and acds_server_shutdown().

◆ shutdown

atomic_bool acds_server_t::shutdown

Shutdown flag for worker threads.

Definition at line 113 of file discovery-service/server.h.

Referenced by acds_server_init(), and acds_server_shutdown().

◆ tcp_server

tcp_server_t acds_server_t::tcp_server

TCP server abstraction.

Definition at line 95 of file discovery-service/server.h.

Referenced by acds_client_handler(), acds_main(), acds_server_init(), acds_server_run(), and acds_server_shutdown().

◆ worker_pool

thread_pool_t* acds_server_t::worker_pool

Thread pool for background workers.

Definition at line 112 of file discovery-service/server.h.

Referenced by acds_server_init(), and acds_server_shutdown().


The documentation for this struct was generated from the following file: