Skip to main content

Module message

Module message 

Source

Structs§

PeerAddr
A peer address with protocol and priority. Lower priority number means higher preference.
PeerNetMsg
Wire envelope for the peer data-plane (the persistent FramedConn between two Nodes after the data-plane handshake).
PeerNetMsgHeader
ProtocolMsg
Wraps an application protocol’s payload. Sent inside a PeerNetMsg with PeerNetCmd::Protocol.
ShutdownMsg
Graceful close payload. Used by both wire surfaces.
StreamInit
First message on any new QUIC stream - identifies which protocol it serves.

Enums§

PeerNetCmd
Commands valid on the peer data-plane wire.
Protocol
Transport protocol used by a peer address.

Functions§

pick_endpoint
Pick the best endpoint from a list of peer addresses that matches one of the supported protocols. Returns the highest-priority (lowest number) matching endpoint.