uot

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: GPL-2.0 Imports: 8 Imported by: 127

Documentation

Index

Constants

View Source
const UOTMagicAddress = "sp.udp-over-tcp.arpa"

Variables

Functions

func NewServerConn

func NewServerConn(packetConn net.PacketConn) net.Conn

Types

type ClientConn

type ClientConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewClientConn

func NewClientConn(conn net.Conn) *ClientConn

func (*ClientConn) ReadFrom

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

func (*ClientConn) ReadPacket

func (c *ClientConn) ReadPacket(buffer *buf.Buffer) (M.Socksaddr, error)

func (*ClientConn) WritePacket

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

func (*ClientConn) WriteTo

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

type ServerConn

type ServerConn struct {
	net.PacketConn
	// contains filtered or unexported fields
}

func (*ServerConn) Close

func (c *ServerConn) Close() error

func (*ServerConn) Read

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

func (*ServerConn) RemoteAddr

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

func (*ServerConn) Write

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

Jump to

Keyboard shortcuts

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