|
ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
|
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_s * | rate_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. | |
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.
| 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.
| 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().
| 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().
| 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().
| 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().
| size_t acds_server_t::num_active_migrations |
Number of active migrations.
Definition at line 109 of file discovery-service/server.h.
| 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().
| 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_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().
| 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().