libp2p v0.1.2 Libp2p.Peer View Source
Functions related to peer connection and streaming.
Link to this section Summary
Functions
Clients issue a Connect request when they wish to connect to a known peer on a given set of addresses.
Clients issue a Disconnect request when they wish to disconnect from a peer.
Turns peer id into a binary representation.
Clients issue an Identify request when they wish to determine the peer ID and listen addresses of the daemon.
List all peers that the daemon is connected to.
Turns peer id binary to string representation.
Link to this section Functions
connect(peer, addr, timeout \\ 2) View Source
Clients issue a Connect request when they wish to connect to a known peer on a given set of addresses.
disconnect(peer) View Source
Clients issue a Disconnect request when they wish to disconnect from a peer.
from_string(string) View Source
Turns peer id into a binary representation.
identify() View Source
Clients issue an Identify request when they wish to determine the peer ID and listen addresses of the daemon.
list_peers() View Source
List all peers that the daemon is connected to.
to_string(bytes) View Source
Turns peer id binary to string representation.