Documentation ¶
Index ¶
- func ListenThenAcceptThenTransferTo(laddr *net.TCPAddr, autoReconnect bool) error
- func ListenThenAcceptThenTransferToTCP(laddr *net.TCPAddr, autoReconnect bool) error
- func Transfer(client net.Conn, closeConn bool) error
- func TransferToHostServe(lAddress string) error
- type SocksPacket1
- type SocksPacket2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransferToHostServe ¶
Types ¶
type SocksPacket1 ¶
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
Click to show internal directories.
Click to hide internal directories.