StunHandler class

STUN handler implementation

Implemented types

Constructors

StunHandler(StunHandlerInput input)
Creates a STUN handler with the provided configuration

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 UDP socket
override
getSocket() RawDatagramSocket
Returns the underlying UDP socket
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performLocalRequest() Future<LocalInfo>
Performs a local network request to get local IP and port
override
performStunRequest() Future<StunResponse>
Performs a STUN binding request to discover the public IP and port
override
pingStunServer() Future<bool>
Pings the STUN server to verify connectivity
override
setStunServer(String address, int port) → void
Updates the STUN server address and port
override
toString() String
A string representation of this object.
inherited

Operators

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