Skip to main content

Module capability

Module capability 

Expand description

Protocol version compatibility and capability negotiation.

Structs§

VersionMismatch
Error returned when two peers’ protocol major versions differ.

Functions§

check_version
Accept the peer when the protocol major versions match.
negotiate_capabilities
Return the capabilities both peers advertise.
negotiate_max_frame_len
Return the maximum frame size two peers agree on.