socks

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnsupportedSocksCommand = errors.New("Unsupported socks command.")
	UnsupportedAuthMethod   = errors.New("Unsupported auth method.")
)

Functions

This section is empty.

Types

type Config added in v1.1.1

type Config interface {
	IsNoAuth() bool
	IsPassword() bool
	HasAccount(username, password string) bool
	IP() net.IP
	UDPEnabled() bool
}

type SocksServer added in v0.6.1

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

SocksServer is a SOCKS 5 proxy server

func NewSocksServer added in v0.6.1

func NewSocksServer(space *app.Space, config Config) *SocksServer

func (*SocksServer) AcceptConnections added in v0.6.1

func (this *SocksServer) AcceptConnections(listener *net.TCPListener)

func (*SocksServer) AcceptPackets added in v0.6.1

func (this *SocksServer) AcceptPackets(conn *net.UDPConn) error

func (*SocksServer) HandleConnection added in v0.6.1

func (this *SocksServer) HandleConnection(connection *net.TCPConn) error

func (*SocksServer) Listen added in v0.6.1

func (this *SocksServer) Listen(port v2net.Port) error

func (*SocksServer) ListenUDP added in v0.6.1

func (this *SocksServer) ListenUDP(port v2net.Port) error

type SocksServerFactory added in v0.6.1

type SocksServerFactory struct {
}

func (SocksServerFactory) Create added in v0.6.1

func (this SocksServerFactory) Create(space *app.Space, rawConfig interface{}) (connhandler.InboundConnectionHandler, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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