socks5

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(host, port, user, password string) netapi.Proxy

func NewClient

func NewClient(config *protocol.Protocol_Socks5) point.WrapProxy

New returns a new Socks5 client

Types

type Client

type Client struct {
	netapi.EmptyDispatch
	// contains filtered or unexported fields
}

https://tools.ietf.org/html/rfc1928 Client socks5 Client

func (*Client) Conn

func (s *Client) Conn(ctx context.Context, host netapi.Address) (net.Conn, error)

func (*Client) PacketConn

func (s *Client) PacketConn(ctx context.Context, host netapi.Address) (net.PacketConn, error)

type Server

type Server struct {
	*netapi.ChannelServer
	// contains filtered or unexported fields
}

func (*Server) Close

func (s *Server) Close() error

func (*Server) Handle

func (s *Server) Handle(client net.Conn) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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