tproxy

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IP6T_SO_ORIGINAL_DST = 80
	SO_ORIGINAL_DST      = 80
)

Variables

This section is empty.

Functions

func NewInboundConnSession

func NewInboundConnSession(conn net.Conn) (protocol.ConnSession, *protocol.Request, error)

func NewInboundPacketSession

func NewInboundPacketSession(ctx context.Context, config *conf.GlobalConfig) (protocol.PacketSession, error)

Types

type NATInboundPacketSession

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

func (*NATInboundPacketSession) Close

func (i *NATInboundPacketSession) Close() error

func (*NATInboundPacketSession) ReadPacket

func (i *NATInboundPacketSession) ReadPacket() (*protocol.Request, []byte, error)

func (*NATInboundPacketSession) WritePacket

func (i *NATInboundPacketSession) WritePacket(req *protocol.Request, packet []byte) (int, error)

type TProxyInboundConnSession

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

func (*TProxyInboundConnSession) Close

func (i *TProxyInboundConnSession) Close() error

func (*TProxyInboundConnSession) GetRequest

func (i *TProxyInboundConnSession) GetRequest() *protocol.Request

func (*TProxyInboundConnSession) Read

func (i *TProxyInboundConnSession) Read(p []byte) (int, error)

func (*TProxyInboundConnSession) Write

func (i *TProxyInboundConnSession) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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