Expand description
Sync protocol types and selection logic (CIP §2.3 - Protocol Selection Rules).
Defines the available sync protocols and the logic to select the optimal one.
Structs§
- Protocol
Selection - Result of protocol selection with reasoning.
Enums§
- Sync
Protocol - Sync protocol selection for negotiation.
- Sync
Protocol Kind - Protocol capability identifier for sync negotiation.
Functions§
- calculate_
divergence - Calculate the divergence ratio between two handshakes.
- is_
protocol_ supported - Check if a protocol kind is supported by the remote peer.
- select_
protocol - Select the optimal sync protocol based on handshake information.
- select_
protocol_ with_ fallback - Select protocol with fallback if preferred is not supported.