Documentation ¶
Index ¶
- func GetPublicAddr(conn *net.UDPConn) (string, int, error)
- func GuessLocalPort(remoteAddr string) (int, error)
- func GuessRemotePort(remoteIP string, opts ...Option) (int, error)
- func SimpleTest(remoteIP string) error
- type CustomNet
- type Message
- type NAT
- type Option
- type PortInfo
- type ReusedConn
- type STUNInfo
- type STUNSrv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GuessLocalPort ¶
func SimpleTest ¶
Types ¶
type NAT ¶
type NAT int
func (NAT) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*NAT) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
type ReusedConn ¶
func (*ReusedConn) Close ¶
func (rc *ReusedConn) Close() error
Click to show internal directories.
Click to hide internal directories.