Expand description
TLS-based network server for handling authenticated client connections.
This module provides a NetworkListener that manages client
authentication, request processing, and message dispatching over a secure
TCP connection.
The listener is generic over a pair of extension message sets. Custom
client messages decode into Req and are forwarded, fully typed, over the
custom request channel; the handler answers with a CustomOutcome
carrying either a Res message or a protocol error. Servers without
protocol extensions use the default
NoExtension sets and never touch any
of this.
Structs§
- Custom
Request Message - A custom client request forwarded to the application layer.
- Network
Listener - A TLS-secured TCP server that accepts client connections, authenticates them, and dispatches their requests to the appropriate handlers.
- Network
Listener Builder - Builder for
NetworkListener.
Enums§
- Builder
Error - Custom
Outcome - The application’s answer to a custom request.
- Error
Constants§
- DEFAULT_
MAX_ PAYLOAD_ LEN - Default maximum payload length accepted from clients.
Type Aliases§
- Builder
Result - Client
Registry - Maps client IDs to their stored password hashes (Argon2).
- Result