socks

package
v0.0.0-...-efaec8f Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SocksV5Server

type SocksV5Server struct {
	netflow.Netflow

	Options  config.NodeConfig
	Listener net.Listener
	// contains filtered or unexported fields
}

func NewSocksV5Server

func NewSocksV5Server(opts config.NodeConfig) (svr *SocksV5Server)

func (*SocksV5Server) ConnectRemoteSSH

func (svr *SocksV5Server) ConnectRemoteSSH() (err error)

func (*SocksV5Server) IoBind

func (svr *SocksV5Server) IoBind(src, dst net.Conn, fnClose func(err error))

func (*SocksV5Server) Listen

func (svr *SocksV5Server) Listen() (err error)

func (*SocksV5Server) ListenTCP

func (svr *SocksV5Server) ListenTCP() (err error)

func (*SocksV5Server) OutToTCP

func (svr *SocksV5Server) OutToTCP(address string, inConn *net.Conn, req *socks.Socks5RequestData) (err error)

func (*SocksV5Server) Run

func (svr *SocksV5Server) Run() (err error)

func (*SocksV5Server) Shutdown

func (svr *SocksV5Server) Shutdown()

Jump to

Keyboard shortcuts

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