Documentation ¶
Overview ¶
Package stun contains ICE specific STUN code
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertUsername ¶
AssertUsername checks that the given STUN message m has a USERNAME attribute with a given value
func GetXORMappedAddr ¶
func GetXORMappedAddr(conn net.PacketConn, serverAddr net.Addr, timeout time.Duration) (*stun.XORMappedAddress, error)
GetXORMappedAddr initiates a STUN requests to serverAddr using conn, reads the response and returns the XORMappedAddress returned by the STUN server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.