socks

package
v0.0.0-...-386422c Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Socks5

type Socks5 struct {
	Port  uint16
	Proxy constant.Proxy
	// contains filtered or unexported fields
}

func NewSocks5

func NewSocks5(options Socks5Options) *Socks5

func (*Socks5) Close

func (e *Socks5) Close()

func (*Socks5) GetDownStream

func (e *Socks5) GetDownStream() int64

func (*Socks5) GetUpStream

func (e *Socks5) GetUpStream() int64

func (*Socks5) HandleConnection

func (p *Socks5) HandleConnection(conn net.Conn)

func (*Socks5) HandleSocks5

func (p *Socks5) HandleSocks5(r *bufio.Reader, conn net.Conn)

func (*Socks5) Start

func (e *Socks5) Start()

func (*Socks5) UpdatePort

func (e *Socks5) UpdatePort(port uint16)

func (*Socks5) UpdateProxy

func (e *Socks5) UpdateProxy(proxy constant.Proxy)

func (*Socks5) UpdateSocks5

func (e *Socks5) UpdateSocks5(options Socks5Options) error

type Socks5Options

type Socks5Options struct {
	Port uint16
	//AllowLAN bool
	Dialer constant.Proxy
}

Jump to

Keyboard shortcuts

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