stun

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: AGPL-3.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const STUN = "stun"

Variables

View Source
var ATTRIBUTES = map[uint32]string{
	0x0001: "MappedAddress",
	0x0006: "Username",
	0x0008: "MessageIntegrity",
	0x0009: "ErrorCode",
	0x000a: "UnknownAttributes",
	0x0014: "Realm",
	0x0015: "Nonce",
	0x0020: "XORMappedAddress",
	0x8022: "Software",
	0x8023: "AlternateServer",
	0x8028: "Fingerprint",
}
View Source
var BindingResponse = "0101"
View Source
var FingerprintAttrLength = 8
View Source
var FingerprintXor uint32 = 0x5354554e
View Source
var MagicCookie = "2112a442"
View Source
var MessageHeaderLength = 20

Functions

This section is empty.

Types

type Plugin

type Plugin struct{}

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) PortPriority

func (p *Plugin) PortPriority(i uint16) bool

func (*Plugin) Priority

func (p *Plugin) Priority() int

func (*Plugin) Run

func (p *Plugin) Run(conn net.Conn, timeout time.Duration, target plugins.Target) (*plugins.Service, error)

func (*Plugin) Type

func (p *Plugin) Type() plugins.Protocol

Jump to

Keyboard shortcuts

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