IStunHandler class abstract

Interface for STUN handler

Implementers

Constructors

IStunHandler()

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

close() → void
Closes the socket and releases resources held by the STUN handler
getSocket() RawDatagramSocket
Returns the underlying socket used to communicate with the STUN server
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performLocalRequest() Future<LocalInfo>
Retrieves local (IP, port) information without contacting the STUN server
performStunRequest() Future<StunResponse>
Performs a STUN request and returns the public (IP, port) inferred by the server
pingStunServer() Future<bool>
Verifies the reachability of the configured STUN server
setStunServer(String address, int port) → void
Sets the STUN server address/port used for subsequent requests
toString() String
A string representation of this object.
inherited

Operators

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