testingsocks5

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.0, MIT Imports: 13 Imported by: 0

Documentation

Overview

Package testingsock5 is a netem-aware fork of https://github.com/armon/go-socks5.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server accepts connections and implements the SOCSK5 protocol.

The zero value is invalid; please, use [NewServer].

func MustNewServer

func MustNewServer(logger model.Logger, netx *netxlite.Netx, addr *net.TCPAddr) *Server

MustNewServer creates a new Server instance.

func (*Server) Close

func (s *Server) Close() (err error)

Close closes the listener and waits for all goroutines to join

func (*Server) Endpoint

func (s *Server) Endpoint() string

Endpoint returns the server endpoint.

func (*Server) Serve

func (s *Server) Serve() error

Serve is used to Serve connections from a given listener.

func (*Server) URL

func (s *Server) URL() *url.URL

URL returns a socks5 URL for the local listening address

Jump to

Keyboard shortcuts

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