socks5

package
v0.0.0-...-f3666bb Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: BSD-3-Clause Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MethodNoAuthentication = iota
	MethodGSSAPI
	MethodUsernamePassword
	MethodNoAcceptable = 0xff
)

methods

View Source
const (
	CMDConnect = iota + 0x01
	CMDBind
	CMDUDPAssociate
)

CMD

View Source
const (
	AddrTypeIPv4 = iota + 0x01
	AddrTypeDomainName
	AddrTypeIPv6
)

address type

View Source
const (
	ReplySucceeded = iota
	ReplyGeneralFailure
	ReplyConnectionNotAllowed
	ReplyNetworkUnreachable
	ReplyHostUnreachable
	ReplyConnectionRefused
	ReplyTTLExpired
	ReplyCMDNotSupported
	ReplyAddrTypeNotSupported
)

reply field

View Source
const Version = 0x05

version

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

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

func (Error) Byte

func (self Error) Byte() byte

func (Error) Error

func (self Error) Error() string

type Server

type Server struct {
	Dialer proxy.Dialer
}

func (Server) ListenAndServe

func (self Server) ListenAndServe(network, address string) (err error)

func (Server) Serve

func (self Server) Serve(listener net.Listener) (err error)

Jump to

Keyboard shortcuts

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