core/host/host library

Package host provides the core Host interface for libp2p.

Host represents a single libp2p node in a peer-to-peer network.

Classes

Host
Host is an object participating in a p2p network, which implements protocols or provides services. It handles requests like a Server, and issues requests like a Client. It is called Host because it is both Server and Client (and Peer may be confusing).

Typedefs

AddrsFactory = List<MultiAddr> Function(List<MultiAddr> addrs)
AddrsFactory functions can be passed to a Host to override addresses returned by Addrs.