Skip to main content

Crate pb_mapper_server

Crate pb_mapper_server 

Source
Expand description

Relay server domain model and module wiring.

TCP / QUIC listener -> connection authentication/dispatch -> ManagerTask queue
                                                        -> routing runtime
registered control connection <------ ConnTask ----+------> subscriber

connection owns per-socket protocol/authentication concerns, while runtime serializes global routing maps and quotas. task holds the messages between them, routing the routing model the runtime keeps, and service_key the namespaced service keys both use. Service-side and client-side tunnel loops remain isolated in server and client.

Re-exports§

pub use direct::DirectServerConfig;

Modules§

direct
Setup coordination is serialized by the existing routing manager. Established direct sessions are observations only and never acquire an authorization lease.
manager
The routing manager’s work queue, and its registry of connection IDs and the mailboxes they are reached through.

Structs§

QuicServerConfig
Optional QUIC listener, separate from the direct STUN UDP port.
RelayServerOptions
ServerConnInfo
ServerStatusInfo

Enums§

ConnTask
ManagerTask
ServerConnHealth

Functions§

run_server
Run a server that takes its keep-alive setting from the environment.
run_server_on_listener
run_server_on_listener_with_direct
run_server_on_listener_with_options
run_server_with_auth_config
run_server_with_shutdown

Type Aliases§

ImutableKey
ServerConnMap