Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangedAddress ¶
ChangedAddress 是用于解析 CHANGED-ADDRESS 属性的自定义类型。
type STUNClient ¶
type STUNClient interface {
XORMappedAddress() (*udp.Addr, error)
MappedAddress() (*udp.Addr, error)
ChangedAddress() (*udp.Addr, error)
OtherAddress() (*udp.Addr, error)
ExternalAddr() (*udp.Addr, error)
ExternalAddrs() ([]*udp.Addr, error)
Close() error
}
STUNClient 是一个用于与 STUN 服务器通信的接口。
func NewClient ¶
func NewClient(stunURI string) (STUNClient, error)
Click to show internal directories.
Click to hide internal directories.