Documentation ¶
Index ¶
- Constants
- func Sock5GetRequest(conn io.ReadWriter) (rawaddr []byte, host string, err error)
- func Sock5Handshake(conn *net.TCPConn, timeoutms int, username string, password string) (err error)
- func Sock5HandshakeBy(conn io.ReadWriter, username string, password string) (err error)
- func Sock5SetRequest(conn *net.TCPConn, host string, port int, timeoutms int) (err error)
Constants ¶
View Source
const ( Socks5AtypIP4 = 1 Socks5AtypDomain = 3 Socks5AtypIP6 = 4 )
View Source
const ( NoAuth = uint8(0) UserPassAuth = uint8(2) )
Variables ¶
This section is empty.
Functions ¶
func Sock5GetRequest ¶
func Sock5GetRequest(conn io.ReadWriter) (rawaddr []byte, host string, err error)
func Sock5Handshake ¶
func Sock5HandshakeBy ¶
func Sock5HandshakeBy(conn io.ReadWriter, username string, password string) (err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.