sockskit

package
v0.0.0-...-d9922dd Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenThenAcceptThenTransferTo

func ListenThenAcceptThenTransferTo(laddr *net.TCPAddr, autoReconnect bool) error

func ListenThenAcceptThenTransferToTCP

func ListenThenAcceptThenTransferToTCP(laddr *net.TCPAddr, autoReconnect bool) error

func Transfer

func Transfer(client net.Conn, closeConn bool) error

func TransferToHostServe

func TransferToHostServe(lAddress string) error

Types

type SocksPacket1

type SocksPacket1 struct {
	Packet   []byte
	Version  byte
	NMethods byte
	Methods  []byte
}

func BuildPacket1

func BuildPacket1(packet []byte) SocksPacket1

type SocksPacket2

type SocksPacket2 struct {
	Packet   []byte
	Version  byte
	CMD      byte
	RSV      byte
	ATYP     byte
	DST_ADDR []byte
	DST_PORT []byte
}

func BuildPacket2

func BuildPacket2(packet []byte) SocksPacket2

func (SocksPacket2) GetAddr

func (p SocksPacket2) GetAddr() string

func (SocksPacket2) GetAddress

func (p SocksPacket2) GetAddress() string

func (SocksPacket2) GetPort

func (p SocksPacket2) GetPort() int

Jump to

Keyboard shortcuts

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