stun

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type STUN

type STUN struct {
	// contains filtered or unexported fields
}

func NewSTUN

func NewSTUN(c types.PacketConn, endpoint string, isV6 bool, logger *zap.Logger) (*STUN, error)

func (*STUN) Close

func (s *STUN) Close() error

func (*STUN) Notify

func (s *STUN) Notify(fn func(addr netip.AddrPort))

func (*STUN) Trigger

func (s *STUN) Trigger()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL