Skip to main content

Module peer

Module peer 

Source
Expand description

Handles peer creation, with a PeerHandle struct for handling peers

Structs§

PeerHandle
Used to reference, request, and kill

Enums§

Outgoing
Message expecting a response OR not
PeerError

Constants§

PEER_PING_INTERVAL
Peer ping interval, in seconds
PEER_TIMEOUT
Peer timeout, in seconds

Functions§

create_peer
Create a new peer, start internal tasks, and return a PeerHandle