socks

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package socks handles SOCKS5 messages from the server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(msg jobs.Job, jobsOut *chan jobs.Job)

Handler is the entry point for SOCKS connections. This function starts a SOCKS server and processes incoming SOCKS connections

Types

type Connection

type Connection struct {
	Job     jobs.Job
	In      net.Conn
	Out     net.Conn
	JobChan *chan jobs.Job // Channel to send jobs back to the server

	Count int // Counter to track the number of SOCKS messages sent
	// contains filtered or unexported fields
}

Connection is a structure used to track new SOCKS client connections

Jump to

Keyboard shortcuts

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