StunClient class
Constructors
- StunClient.new({String serverHost = defaultStunServer, int stunPort = defaultStunPort, Duration? timeout})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverHost → String
-
final
- stunPort → int
-
final
-
stunServer
→ Future<
InternetAddress> -
no setter
- timeout → Duration
-
final
Methods
-
discover(
) → Future< StunResponse> - Discovers external IP address and port
-
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
Constants
- defaultStunPort → const int
- defaultStunServer → const String
- defaultTimeout → const Duration
- dnsTimeout → const Duration