Skip to main content

Module connection_engine

Module connection_engine 

Source

Structsยง

ClientSession ๐Ÿ”’
Represents an authenticated user session within the server.

Staticsยง

NEXT_CONNECTION_ID ๐Ÿ”’
Thread-safe atomic counter used to generate unique ConnectionIDs for incoming clients.
SERVER_STATE ๐Ÿ”’
The central, globally accessible repository of all authenticated client sessions. Maps a unique [SessionID] to its corresponding ClientSession.

Functionsยง

announce_shutdown
Broadcasts a graceful shutdown announcement to all currently connected clients.

Type Aliasesยง

ConnectionID ๐Ÿ”’
Unique identifier for an active physical TCP connection.