socks

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SocksServer

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

SocksServer is a SOCKS 5 proxy server

func NewSocksServer

func NewSocksServer(vp *core.Point, rawConfig []byte) *SocksServer

func (*SocksServer) AcceptConnections

func (server *SocksServer) AcceptConnections(listener net.Listener)

func (*SocksServer) AcceptPackets

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

func (*SocksServer) HandleConnection

func (server *SocksServer) HandleConnection(connection net.Conn) error

func (*SocksServer) Listen

func (server *SocksServer) Listen(port uint16) error

func (*SocksServer) ListenUDP

func (server *SocksServer) ListenUDP(port uint16) error

type SocksServerFactory

type SocksServerFactory struct {
}

func (SocksServerFactory) Create

func (factory SocksServerFactory) Create(vp *core.Point, config []byte) (core.InboundConnectionHandler, error)

Directories

Path Synopsis
config

Jump to

Keyboard shortcuts

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