stun

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Blocked              = "Blocked"
	OpenInternet         = "Open Internet"
	FullCone             = "Full Cone"
	SymmetricUDPFirewall = "Symmetric UDP Firewall"
	RestrictNAT          = "Restrict NAT"
	RestrictPortNAT      = "Restrict Port NAT"
	SymmetricNAT         = "Symmetric NAT"
	ChangedAddressError  = "Meet an error, when do Test1 on Changed IP and Port"

	MappedAddress    = "0001"
	ResponseAddress  = "0002"
	ChangeRequest    = "0003"
	SourceAddress    = "0004"
	ChangedAddress   = "0005"
	Username         = "0006"
	Password         = "0007"
	MessageIntegrity = "0008"
	ErrorCode        = "0009"
	UnknownAttribute = "000A"
	ReflectedFrom    = "000B"
	XorOnly          = "0021"
	XorMappedAddress = "8020"
	ServerName       = "8022"
	SecondaryAddress = "8050" // Non standard extension

	BindRequestMsg               = "0001"
	BindResponseMsg              = "0101"
	BindErrorResponseMsg         = "0111"
	SharedSecretRequestMsg       = "0002"
	SharedSecretResponseMsg      = "0102"
	SharedSecretErrorResponseMsg = "0112"
)

Variables

View Source
var TimeOut = errors.New("timeout")

Functions

func GetIpInfo

func GetIpInfo() (string, string, int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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