udp

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObfsUDPHopClientPacketConn added in v1.3.0

type ObfsUDPHopClientPacketConn struct {
	// contains filtered or unexported fields
}

ObfsUDPHopClientPacketConn is the UDP port-hopping packet connection for client side. It hops to a different local & server port every once in a while.

func NewObfsUDPHopClientPacketConn added in v1.3.0

func NewObfsUDPHopClientPacketConn(server string, hopInterval time.Duration, obfs obfs.Obfuscator) (*ObfsUDPHopClientPacketConn, net.Addr, error)

func (*ObfsUDPHopClientPacketConn) Close added in v1.3.0

func (c *ObfsUDPHopClientPacketConn) Close() error

func (*ObfsUDPHopClientPacketConn) LocalAddr added in v1.3.0

func (c *ObfsUDPHopClientPacketConn) LocalAddr() net.Addr

func (*ObfsUDPHopClientPacketConn) ReadFrom added in v1.3.0

func (c *ObfsUDPHopClientPacketConn) ReadFrom(b []byte) (int, net.Addr, error)

func (*ObfsUDPHopClientPacketConn) SetDeadline added in v1.3.0

func (c *ObfsUDPHopClientPacketConn) SetDeadline(t time.Time) error

func (*ObfsUDPHopClientPacketConn) SetReadDeadline added in v1.3.0

func (c *ObfsUDPHopClientPacketConn) SetReadDeadline(t time.Time) error

func (*ObfsUDPHopClientPacketConn) SetWriteDeadline added in v1.3.0

func (c *ObfsUDPHopClientPacketConn) SetWriteDeadline(t time.Time) error

func (*ObfsUDPHopClientPacketConn) WriteTo added in v1.3.0

func (c *ObfsUDPHopClientPacketConn) WriteTo(b []byte, addr net.Addr) (int, error)

type ObfsUDPPacketConn

type ObfsUDPPacketConn struct {
	// contains filtered or unexported fields
}

func NewObfsUDPConn

func NewObfsUDPConn(orig *net.UDPConn, obfs obfs.Obfuscator) *ObfsUDPPacketConn

func (*ObfsUDPPacketConn) Close

func (c *ObfsUDPPacketConn) Close() error

func (*ObfsUDPPacketConn) File

func (c *ObfsUDPPacketConn) File() (f *os.File, err error)

func (*ObfsUDPPacketConn) LocalAddr

func (c *ObfsUDPPacketConn) LocalAddr() net.Addr

func (*ObfsUDPPacketConn) ReadFrom

func (c *ObfsUDPPacketConn) ReadFrom(p []byte) (int, net.Addr, error)

func (*ObfsUDPPacketConn) SetDeadline

func (c *ObfsUDPPacketConn) SetDeadline(t time.Time) error

func (*ObfsUDPPacketConn) SetReadBuffer

func (c *ObfsUDPPacketConn) SetReadBuffer(bytes int) error

func (*ObfsUDPPacketConn) SetReadDeadline

func (c *ObfsUDPPacketConn) SetReadDeadline(t time.Time) error

func (*ObfsUDPPacketConn) SetWriteBuffer

func (c *ObfsUDPPacketConn) SetWriteBuffer(bytes int) error

func (*ObfsUDPPacketConn) SetWriteDeadline

func (c *ObfsUDPPacketConn) SetWriteDeadline(t time.Time) error

func (*ObfsUDPPacketConn) SyscallConn

func (c *ObfsUDPPacketConn) SyscallConn() (syscall.RawConn, error)

func (*ObfsUDPPacketConn) WriteTo

func (c *ObfsUDPPacketConn) 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