Crate sbd_server

Source
Expand description

Sbd server library.

Re-exports§

pub use ws::Payload;
pub use ws::SbdWebsocket;

Modules§

ws
Websocket backend abstraction.

Structs§

CSlot
A connection slot container.
Config
Configure and execute an SBD server.
IpRate
Rate limit connections by IP address.
PubKey
Public key.
SbdServer
SbdServer.
TlsConfig
RustTLS config plus cert and pk paths.
WeakCSlot
A weak reference to a connection slot container.

Enums§

MaybeTlsStream
A stream that might be protected with TLS.

Functions§

handle_upgraded
Handle an upgraded websocket connection.
preflight_ip_check
If the check passes, the canonical IP is returned, otherwise None and the connection should be dropped.
spawn_prune_task
Spawn a Tokio task to prune the IpRate map.
to_canonical_ip
Convert an IP address to an IPv6 address.