socks

package
v0.0.0-...-c8b0a90 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	// Dial connects to the given address via the proxy.
	Dial(network, addr string) (c net.Conn, err error)
}

type Server

type Server struct {
	Dialer Dialer
}

func (Server) ServeConn

func (s Server) ServeConn(conn net.Conn) error

type SocksError

type SocksError int
const (
	ErrInvalidVersion SocksError = iota
	ErrStringTooLong  SocksError = iota
)

func (SocksError) Error

func (e SocksError) Error() string

Jump to

Keyboard shortcuts

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