Skip to main content

Module socket

Module socket 

Source
Expand description

Socket I/O wrappers and TCP option helpers.

Hosts the SocketHandler trait, the FrontRustls wrapper that drives a rustls ServerConnection over a TcpStream, plus the ancillary getsockopt(TCP_INFO) / TCP-keepalive helpers. The FrontRustls::socket_write / socket_write_vectored pair is a known truncation hot spot — keep the two paths structurally symmetric (see the per-method /// invariants).

Modules§

stats
Socket statistics

Structs§

FrontRustls
SessionTcpStream
TcpStream wrapped with the owning session’s ULID. Exists so plain-TCP frontends and backends inside the mux stack can prefix SOCKET-layer error logs with [<session_ulid> - - -], matching what TLS-wrapped frontends already do via FrontRustls::session_ulid.

Enums§

ServerBindError
SocketResult
TransportProtocol

Traits§

SocketHandler

Functions§

server_bind