tunnel

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TrojanConn

type TrojanConn struct {
	net.Conn
}

func (*TrojanConn) ReadFrom

func (t *TrojanConn) ReadFrom(payload []byte) (int, net.Addr, error)

func (*TrojanConn) ReadWithMetadata

func (t *TrojanConn) ReadWithMetadata(payload []byte) (int, *common.Address, error)

func (*TrojanConn) WriteTo

func (t *TrojanConn) WriteTo(payload []byte, addr net.Addr) (int, error)

func (*TrojanConn) WriteWithMetadata

func (t *TrojanConn) WriteWithMetadata(payload []byte, addr *common.Address) (int, error)

type UDPConn

type UDPConn struct {
	*net.UDPConn
}

func (*UDPConn) ReadWithMetadata

func (c *UDPConn) ReadWithMetadata(p []byte) (int, *common.Address, error)

func (*UDPConn) WriteTo

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

func (*UDPConn) WriteWithMetadata

func (c *UDPConn) WriteWithMetadata(p []byte, adder *common.Address) (int, error)

Jump to

Keyboard shortcuts

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