ObservedAddrManager class

ObservedAddrManager maps connection's local multiaddrs to their externally observable multiaddress

Constructors

ObservedAddrManager.new({required List<MultiAddr> listenAddrs(), required List<MultiAddr> hostAddrs(), required Future<List<MultiAddr>> interfaceListenAddrs(), MultiAddr normalize(MultiAddr)?})
Creates a new observed address manager.

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

addrs() List<MultiAddr>
Addrs return all activated observed addresses
addrsFor(MultiAddr? addr) List<MultiAddr>
AddrsFor return all activated observed addresses associated with the given (resolved) listen address.
close() Future<void>
Close stops the observed address manager.
getNATType() → (NATDeviceType, NATDeviceType)
getNATType returns the NAT type for TCP and UDP.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
record(Conn conn, MultiAddr observed) → void
Record enqueues an observation for recording
removeConn(Conn? conn) → void
removeConn removes a connection from the observed address manager.
toString() String
A string representation of this object.
inherited

Operators

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