NatStatusReporter class
A class that provides NAT status reporting
Constructors
- NatStatusReporter.new({required NatBehaviorTracker behaviorTracker})
- Creates a new NAT status reporter
Properties
-
behaviorHistory
→ List<
NatBehaviorRecord> -
Gets the history of NAT behavior records
no setter
- currentBehavior → NatBehavior
-
Gets the current NAT behavior
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- recommendedStrategy → TraversalStrategy
-
Gets the recommended traversal strategy based on the current NAT behavior
no setter
- recommendedStrategyDescription → String
-
Gets a description of the recommended traversal strategy
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addBehaviorChangeCallback(
NatBehaviorChangeCallback callback) → void - Adds a callback for NAT behavior changes
-
getDetailedReport(
) → Map< String, dynamic> - Gets a detailed report of the NAT status
-
getRecommendedPeerStrategy(
NatBehavior remoteBehavior) → TraversalStrategy - Gets the recommended traversal strategy for a connection with a remote peer
-
getRecommendedPeerStrategyDescription(
NatBehavior remoteBehavior) → String - Gets a description of the recommended traversal strategy for a connection with a remote peer
-
getStatusSummary(
) → Map< String, dynamic> - Gets a summary of the current NAT status
-
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
-
updateNatBehavior(
) → Future< NatBehavior> - Triggers a manual update of the NAT behavior
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited