Skip to main content

Module network

Module network 

Source
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§

CustomRequestMessage
A custom client request forwarded to the application layer.
NetworkListener
A TLS-secured TCP server that accepts client connections, authenticates them, and dispatches their requests to the appropriate handlers.
NetworkListenerBuilder
Builder for NetworkListener.

Enums§

BuilderError
CustomOutcome
The application’s answer to a custom request.
Error

Constants§

DEFAULT_MAX_PAYLOAD_LEN
Default maximum payload length accepted from clients.

Type Aliases§

BuilderResult
ClientRegistry
Maps client IDs to their stored password hashes (Argon2).
Result