Skip to main content

Crate hopr_transport_protocol

Crate hopr_transport_protocol 

Source
Expand description

Collection of objects and functionality allowing building of p2p or stream protocols for the higher business logic layers.

§Contents

Supported protocol configurations:

  • mix
  • ack
  • heartbeat

Re-exports§

pub use counters::PeerProtocolCounterRegistry;
pub use counters::PeerProtocolCounters;

Modules§

codec 🔒
Coder and decoder for the transport binary protocol layer
counters
Per-peer protocol conformance counters.
errors
Errors produced by the crate.
heartbeat
heartbeat p2p protocol
pipeline 🔒
Packet pipeline for the HOPR protocol.
stream
Stream processing utilities Infrastructure supporting converting a collection of [PeerId] split libp2p_stream managed individual peer-to-peer libp2p::swarm::Streams.

Structs§

AcknowledgementPipelineConfig
Configuration for the acknowledgement processing pipeline.
PacketPipelineConfig
Overall configuration of the input/output packet processing pipeline.

Enums§

PacketPipelineProcesses

Constants§

CURRENT_HOPR_MSG_PROTOCOL
HOPR_PACKET_SIZE 🔒

Functions§

run_packet_pipeline
Run all processes responsible for handling the msg and acknowledgment protocols.

Type Aliases§

HoprBinaryCodec