packetaddr

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SeqPacketMagicAddress = "sp.packet-addr.v2fly.arpa"

Variables

View Source
var ErrFqdnUnsupported = E.New("packetaddr: fqdn unsupported")

Functions

This section is empty.

Types

type PacketConn

type PacketConn struct {
	N.NetPacketConn
	// contains filtered or unexported fields
}

func NewBindConn

func NewBindConn(conn net.Conn) *PacketConn

func NewConn

func NewConn(conn net.PacketConn, bindAddr M.Socksaddr) *PacketConn

func (*PacketConn) FrontHeadroom

func (c *PacketConn) FrontHeadroom() int

func (*PacketConn) Read

func (c *PacketConn) Read(b []byte) (n int, err error)

func (*PacketConn) ReadFrom

func (c *PacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error)

func (*PacketConn) ReadPacket

func (c *PacketConn) ReadPacket(buffer *buf.Buffer) (destination M.Socksaddr, err error)

func (*PacketConn) RemoteAddr

func (c *PacketConn) RemoteAddr() net.Addr

func (*PacketConn) Upstream

func (c *PacketConn) Upstream() any

func (*PacketConn) Write

func (c *PacketConn) Write(b []byte) (n int, err error)

func (*PacketConn) WritePacket

func (c *PacketConn) WritePacket(buffer *buf.Buffer, destination M.Socksaddr) error

func (*PacketConn) WriteTo

func (c *PacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error)

Jump to

Keyboard shortcuts

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