ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
acds_server_t Struct Reference

Discovery server state. More...

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

Data Fields

network_server_t * network_server
 Network runtime owned by server_like.
mutex_t handoff_mutex
struct acds_handoff_entry * handoffs
uint8_t identity_public [ED25519_PUBLIC_KEY_SIZE]
 Ed25519 public key.
uint8_t identity_secret [ED25519_PRIVATE_KEY_SIZE]
 Ed25519 secret key.
sqlite3 * db
 SQLite database handle.
struct rate_limiter_s * rate_limiter
 SQLite-backed rate limiter.
thread_pool_t * worker_pool
 Thread pool for background workers.
atomic_t shutdown
 Shutdown flag for worker threads.
acds_stats_t stats
 Network statistics for all connections.
acds_config_t config
 Runtime configuration.
bool handoff_mutex_initialized
 Whether shutdown owns the handoff mutex.

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 99 of file src/discovery-service/server.h.

Field Documentation

◆ config

acds_config_t acds_server_t::config

Runtime configuration.

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

Referenced by acds_server_init().

◆ db

sqlite3* acds_server_t::db

SQLite database handle.

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

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

◆ handoff_mutex

mutex_t acds_server_t::handoff_mutex

◆ handoff_mutex_initialized

bool acds_server_t::handoff_mutex_initialized

Whether shutdown owns the handoff mutex.

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

Referenced by acds_server_init(), and acds_server_shutdown().

◆ handoffs

struct acds_handoff_entry* acds_server_t::handoffs

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

Referenced by acds_server_shutdown().

◆ identity_public

uint8_t acds_server_t::identity_public[ED25519_PUBLIC_KEY_SIZE]

Ed25519 public key.

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

◆ identity_secret

uint8_t acds_server_t::identity_secret[ED25519_PRIVATE_KEY_SIZE]

Ed25519 secret key.

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

◆ network_server

network_server_t* acds_server_t::network_server

Network runtime owned by server_like.

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

Referenced by acds_server_init().

◆ rate_limiter

struct rate_limiter_s* acds_server_t::rate_limiter

SQLite-backed rate limiter.

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

Referenced by acds_server_init(), and acds_server_shutdown().

◆ shutdown

atomic_t acds_server_t::shutdown

Shutdown flag for worker threads.

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

Referenced by acds_server_init(), and acds_server_shutdown().

◆ stats

acds_stats_t acds_server_t::stats

Network statistics for all connections.

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

Referenced by acds_server_init().

◆ worker_pool

thread_pool_t* acds_server_t::worker_pool

Thread pool for background workers.

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

Referenced by acds_server_init(), and acds_server_shutdown().


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