Skip to main content

Module server

Module server 

Source
Expand description

Server instance management

Structs§

ClosedConnectionSummary
Summary of a connection that has closed and been removed from ServerInstance::connections. Wall-clock timestamps (not Instant) so the struct is serializable and meaningful across a UI session.
ConnectionState
Connection state within a server
ProtocolConnectionInfo
Protocol-specific connection information
ServerId
Unique identifier for a server instance
ServerInstance
A server instance with its own connections, state, and configuration

Enums§

BgpSessionState
BGP session state (RFC 4271 FSM)
ConnectionStatus
Connection status
ImapSessionState
IMAP session state (RFC 3501)
OspfNeighborState
OSPF neighbor state (RFC 2328 Section 10.1)
ProtocolState
Connection state for state machine (Idle/Processing/Accumulating)
ServerStatus
Status of a server instance

Constants§

MAX_LOG_OUTPUT_NAME_LEN
Longest accepted append_to_log output name.
RECENT_CONNECTION_CAPACITY
How many closed connections a server remembers for the “recently connected” view. Live connections are reaped ~10s after closing (see the cleanup reapers in app_state.rs), so without this history they vanish without a trace.

Functions§

validate_log_output_name
Check an append_to_log output_name before it becomes part of a filename.