[][src]Crate ckb_network

Re-exports

pub use crate::errors::Error;
pub use crate::network::DefaultExitHandler;
pub use crate::network::ExitHandler;
pub use crate::network::NetworkController;
pub use crate::network::NetworkService;
pub use crate::network::NetworkState;
pub use crate::peer_registry::PeerRegistry;
pub use crate::peer_store::types::MultiaddrExt;
pub use crate::peer_store::Score;
pub use p2p::bytes;
pub use p2p::multiaddr;
pub use tokio;

Modules

errors
network
peer_registry
peer_store

Structs

BlockingFlag

Control whether the protocol handle method requires blocking to run default is 0b1111, all function use blocking

CKBProtocol
Peer
PeerId

Identifier of a peer of the network

PeerIdentifyInfo
ProtocolId

Protocol id

ServiceControl

Service control, used to send commands externally at runtime

Enums

Behaviour

Peers behaviours we maintain a score to each peer report peer bahaviour will affects peer's score

PublicKey

Public Key

SessionType

Indicates the session type

SupportProtocols
TargetSession

When sending a message, select the specified session

Traits

CKBProtocolContext
CKBProtocolHandler
ServiceProtocol

Service level protocol handle

Type Definitions

PeerIndex
ProtocolVersion