# Functions
NewClient returns a client without network connection.
NewClientWithConnection returns a client which uses the given connection.
NewLogger creates a default logger.
# Constants
Behavior types.
Behavior types.
Behavior types.
Behavior types.
Default server address and client name.
Default server address and client name.
NAT types.
NAT types.
NAT types.
NAT types.
NAT types.
NAT types.
Deprecated spellings of these constants.
NAT types.
NAT types.
NAT types.
NAT types.
NAT types.
# Structs
Client is a STUN client, which can be set STUN server address and is used to discover NAT type.
Host defines the network address including address family, IP address and port.
Logger is a simple logger specified for this STUN client.
NATBehavior is NAT behavior type of MappingType and FilteringType.