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

Link to this function

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.

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.