uot

package module
v0.0.0-...-bf82029 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var LookupAddress func(domain string) (net.IP, error)

Functions

func NewClientConn

func NewClientConn(conn net.Conn) net.PacketConn

func NewServerConn

func NewServerConn(packetConn net.PacketConn) net.Conn

Types

type ClientConn

type ClientConn struct {
	net.Conn
}

func (*ClientConn) ReadFrom

func (c *ClientConn) ReadFrom(p []byte) (n int, addr net.Addr, err 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)

Directories

Path Synopsis
buf
list
Package list implements a doubly linked list.
Package list implements a doubly linked list.
rw

Jump to

Keyboard shortcuts

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