udp

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewObfsUDPHopClientPacketConn

func NewObfsUDPHopClientPacketConn(server string, serverPorts string, hopInterval time.Duration, obfs obfs.Obfuscator, dialer utils.PacketDialer) (net.PacketConn, error)

Types

type ObfsUDPConn

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

func NewObfsUDPConn

func NewObfsUDPConn(orig net.PacketConn, obfs obfs.Obfuscator) *ObfsUDPConn

func (*ObfsUDPConn) Close

func (c *ObfsUDPConn) Close() error

func (*ObfsUDPConn) LocalAddr

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

func (*ObfsUDPConn) ReadFrom

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

func (*ObfsUDPConn) SetDeadline

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

func (*ObfsUDPConn) SetReadDeadline

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

func (*ObfsUDPConn) SetWriteDeadline

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

func (*ObfsUDPConn) WriteTo

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

type ObfsUDPHopClientPacketConn

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 (*ObfsUDPHopClientPacketConn) Close

func (c *ObfsUDPHopClientPacketConn) Close() error

func (*ObfsUDPHopClientPacketConn) LocalAddr

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

func (*ObfsUDPHopClientPacketConn) ReadFrom

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

func (*ObfsUDPHopClientPacketConn) SetDeadline

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

func (*ObfsUDPHopClientPacketConn) SetReadBuffer

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

func (*ObfsUDPHopClientPacketConn) SetReadDeadline

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

func (*ObfsUDPHopClientPacketConn) SetWriteBuffer

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

func (*ObfsUDPHopClientPacketConn) SetWriteDeadline

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

func (*ObfsUDPHopClientPacketConn) WriteTo

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

type ObfsUDPHopClientPacketConnWithSyscall

type ObfsUDPHopClientPacketConnWithSyscall struct {
	*ObfsUDPHopClientPacketConn
}

func (*ObfsUDPHopClientPacketConnWithSyscall) SyscallConn

Jump to

Keyboard shortcuts

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