Documentation
¶
Index ¶
Constants ¶
View Source
const ( NATUnknown = "unknown" NATRestricted = "restricted" NATUnrestricted = "unrestricted" )
Variables ¶
Functions ¶
func CheckIfRestrictedNAT ¶
This function checks the NAT mapping and filtering behaviour and returns true if the NAT is restrictive (address-dependent mapping and/or port-dependent filtering) and false if the NAT is unrestrictive (meaning it will work with most other NATs),
Types ¶
type StunServerConn ¶
type StunServerConn struct { PrimaryAddr *net.UDPAddr OtherAddr *net.UDPAddr // contains filtered or unexported fields }
func (*StunServerConn) AddOtherAddr ¶
func (c *StunServerConn) AddOtherAddr(addrStr string) error
func (*StunServerConn) Close ¶
func (c *StunServerConn) Close()
Click to show internal directories.
Click to hide internal directories.