utHolepunch

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ExtensionName = "ut_holepunch"

Variables

This section is empty.

Functions

This section is empty.

Types

type AddrType

type AddrType byte
const (
	Ipv4 AddrType = iota
	Ipv6 AddrType = iota
)

type ErrCode

type ErrCode uint32
const (
	NoSuchPeer ErrCode = iota + 1
	NotConnected
	NoSupport
	NoSelf
)

func (ErrCode) Error

func (ec ErrCode) Error() string

type Msg

type Msg struct {
	MsgType  MsgType
	AddrPort netip.AddrPort
	ErrCode  ErrCode
}

func (*Msg) MarshalBinary

func (m *Msg) MarshalBinary() (_ []byte, err error)

func (*Msg) UnmarshalBinary

func (m *Msg) UnmarshalBinary(b []byte) error

type MsgType

type MsgType byte
const (
	Rendezvous MsgType = iota
	Connect
	Error
)

func (MsgType) String

func (me MsgType) String() string

Jump to

Keyboard shortcuts

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