socks

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type SocksConnInboundSession

type SocksConnInboundSession struct {
	protocol.ConnSession
	protocol.NeedRespond
	// contains filtered or unexported fields
}

func (*SocksConnInboundSession) Close

func (i *SocksConnInboundSession) Close() error

func (*SocksConnInboundSession) Read

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

func (*SocksConnInboundSession) Respond

func (i *SocksConnInboundSession) Respond() error

func (*SocksConnInboundSession) Write

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

type SocksInboundPacketSession

type SocksInboundPacketSession struct {
	protocol.PacketSession
	// contains filtered or unexported fields
}

func NewInboundPacketSession

func NewInboundPacketSession(ctx context.Context, conn *net.UDPConn) (*SocksInboundPacketSession, error)

func (*SocksInboundPacketSession) Close

func (i *SocksInboundPacketSession) Close() error

func (*SocksInboundPacketSession) ReadPacket

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

func (*SocksInboundPacketSession) WritePacket

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

Jump to

Keyboard shortcuts

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