PeerRouting class abstract

PeerRouting is a way to find address information about certain peers. This can be implemented by a simple lookup table, a tracking server, or even a DHT.

Implementers

Constructors

PeerRouting.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

findPeer(PeerId id, {RoutingOptions? options}) Future<AddrInfo?>
FindPeer searches for a peer with given ID, returns a peer.AddrInfo with relevant addresses.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited