socks

package
v0.0.0-...-8e6527b Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseURL

func ParseURL(s string) (auth *proxy.Auth, server string, err error)

ParseURL is ...

Types

type Handler

type Handler struct {
	// Auth is ...
	Auth *proxy.Auth
	// contains filtered or unexported fields
}

Handler is ...

func NewHandler

func NewHandler(s string, timeout time.Duration) (*Handler, error)

NewHandler is ...

func (*Handler) Close

func (*Handler) Close() error

Close is ...

func (*Handler) Dial

func (h *Handler) Dial(tgt net.Addr, cmd byte) (net.Conn, *socks.Addr, error)

Dial is ...

func (*Handler) Handle

func (h *Handler) Handle(conn gonet.Conn, tgt net.Addr) error

Handle is ...

func (*Handler) HandlePacket

func (h *Handler) HandlePacket(conn gonet.PacketConn) error

HandlePacket is ...

Jump to

Keyboard shortcuts

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