NATManager class abstract

NATManager is a production-ready interface to manage NAT devices and mappings. It leverages advanced NAT discovery, behavior tracking, and mapping logic.

Constructors

NATManager()

Properties

currentBehavior → NatBehavior
Returns the current NAT behavior.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
traversalStrategy → TraversalStrategy
Returns the recommended NAT traversal strategy.
no setter

Methods

addBehaviorChangeCallback(NatBehaviorChangeCallback callback) → void
Registers a callback for NAT behavior changes.
close() → Future<void>
Closes the NAT manager and releases any resources.
getMapping(MultiAddr addr) → MultiAddr?
Gets the external mapping for a given multiaddress.
hasDiscoveredNAT() → bool
Returns true if a NAT device has been discovered.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeBehaviorChangeCallback(NatBehaviorChangeCallback callback) → void
Removes a callback for NAT behavior changes.
toString() → String
A string representation of this object.
inherited

Operators

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