Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StunClient ¶
type StunClient interface { io.Closer AwaitConnection(ctx context.Context) error MapAddress(ctx context.Context) (lAddr, rAddr netip.AddrPort, err error) }
func NewStunUDPClient ¶
func NewStunUDPClient(localAddr string, server string) (StunClient, error)
type StunTCPClient ¶
type StunTCPClient struct {
// contains filtered or unexported fields
}
func NewStunTCPClient ¶
func NewStunTCPClient(localAddr string, server string, keepaliveUrl string) (*StunTCPClient, error)
func (*StunTCPClient) AwaitConnection ¶
func (c *StunTCPClient) AwaitConnection(ctx context.Context) error
func (*StunTCPClient) Close ¶
func (c *StunTCPClient) Close() error
func (*StunTCPClient) MapAddress ¶
type StunUDPClient ¶
func (*StunUDPClient) AwaitConnection ¶
func (c *StunUDPClient) AwaitConnection(ctx context.Context) error
func (*StunUDPClient) Close ¶
func (c *StunUDPClient) Close() error
func (*StunUDPClient) MapAddress ¶
Click to show internal directories.
Click to hide internal directories.