socks4a

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandConnect byte = 0x01
	CommandBind    byte = 0x02
)

Variables

This section is empty.

Functions

func NewServer

func NewServer(o *listener.Socks4A, ii netapi.Listener, handler netapi.Handler) (netapi.Accepter, error)

Types

type Server

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

func (*Server) AcceptPacket added in v0.3.3

func (s *Server) AcceptPacket() (*netapi.Packet, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Handle

func (s *Server) Handle(conn net.Conn) error

func (*Server) Handshake

func (s *Server) Handshake(conn net.Conn) (netapi.Address, error)

func (*Server) Server

func (s *Server) Server()

Jump to

Keyboard shortcuts

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