Documentation ¶
Index ¶
Constants ¶
View Source
const ( NATUnknown = "unknown" NATRestricted = "restricted" NATUnrestricted = "unrestricted" )
Variables ¶
Functions ¶
func CheckIfRestrictedNATWithProxy ¶ added in v2.8.0
CheckIfRestrictedNATWithProxy 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()
func (*StunServerConn) RoundTrip ¶
func (c *StunServerConn) RoundTrip(msg *stun.Message, addr net.Addr) (*stun.Message, error)
Click to show internal directories.
Click to hide internal directories.