Skip to main content

Crate firecloud_net

Crate firecloud_net 

Source
Expand description

FireCloud Net - P2P networking layer using libp2p

Provides:

  • mDNS local peer discovery
  • Kademlia DHT for global discovery and file provider announcements
  • GossipSub for pub/sub messaging
  • Request/response for file transfer
  • Peer health monitoring

Re-exports§

pub use messaging::MessageRequest;
pub use messaging::MessageResponse;
pub use messaging::MESSAGING_PROTOCOL;

Modules§

messaging
Direct peer-to-peer messaging protocol
nat_traversal
NAT Traversal Module
relay_manager
Relay connection management for NAT traversal

Structs§

FireCloudBehaviour
Combined behaviour for FireCloud networking
FireCloudNode
A FireCloud P2P node
HealthMonitor
Health monitor for tracking all peers in the network
KadQueryId
Unique identifier for an active query.
Multiaddr
Representation of a Multiaddr.
NetworkHealthSummary
Summary of network health
NodeConfig
Node configuration
OutboundRequestId
The ID of an outbound request.
PeerId
Identifier of a peer of the network.
PeerStats
Statistics for a single peer
ResponseChannel
A channel for sending a response to an inbound request.

Enums§

FireCloudEvent
Events emitted by FireCloudBehaviour
NetError
NodeEvent
Events emitted by the node
PeerHealth
Health status of a peer
TransferRequest
Request types for file transfer
TransferResponse
Response types for file transfer

Constants§

PROTOCOL_NAME
Protocol identifier for FireCloud file transfer

Type Aliases§

NetResult