socks

package module
v0.0.0-...-4740c5e Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 10 Imported by: 3

README

socks

modified version of github.com/bhhbazinga/socks5go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenLocalTunnel

func OpenLocalTunnel(conn net.Conn, remoteAddr string, k string)

OpenLocalTunnel open a local tunnel that connect browser to local

func OpenRemoteTunnel

func OpenRemoteTunnel(conn net.Conn, k string)

OpenRemoteTunnel open a remote tunnel that connect local to remote

Types

type ReadableFunc

type ReadableFunc func()

ReadableFunc as a callback when socket readable or closed

type Sock

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

Sock define a socket

func CreateSock

func CreateSock(conn net.Conn, readableCb ReadableFunc, closedCb ReadableFunc) *Sock

CreateSock : create a socket

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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