simplesocks

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInboundConnSession added in v0.3.0

func NewInboundConnSession(conn io.ReadWriteCloser) (protocol.ConnSession, *protocol.Request, error)

func NewOutboundConnSession

func NewOutboundConnSession(req *protocol.Request, conn io.ReadWriteCloser) (protocol.ConnSession, error)

Types

type SimpleSocksConnSession

type SimpleSocksConnSession struct {
	protocol.ConnSession
	protocol.NeedMeter
	// contains filtered or unexported fields
}

func (*SimpleSocksConnSession) Close

func (m *SimpleSocksConnSession) Close() error

func (*SimpleSocksConnSession) GetRequest

func (m *SimpleSocksConnSession) GetRequest() *protocol.Request

func (*SimpleSocksConnSession) Read

func (m *SimpleSocksConnSession) Read(p []byte) (int, error)

func (*SimpleSocksConnSession) SetMeter

func (m *SimpleSocksConnSession) SetMeter(meter stat.TrafficMeter)

func (*SimpleSocksConnSession) Write

func (m *SimpleSocksConnSession) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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