client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Socks5Server *Server
	Nothing      *common.Nothing
}

func NewClient

func NewClient(config *common.Config) (c *Client, err error)

func (*Client) SDail

func (c *Client) SDail(destbuf []byte) (*es.EncryptedStream, error)

func (*Client) Socks5Auth

func (c *Client) Socks5Auth(userClient net.Conn) (err error)

func (*Client) Socks5Connect

func (c *Client) Socks5Connect(client net.Conn) (*es.EncryptedStream, error)

func (*Client) Start

func (c *Client) Start()

type Server

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

func NewServer

func NewServer(parent *Client) *Server

func (*Server) Start

func (s *Server) Start()

Jump to

Keyboard shortcuts

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