Documentation ¶
Index ¶
Constants ¶
View Source
const ( OneTimeAuthMask byte = 0x10 AddrMask byte = 0xf )
Variables ¶
This section is empty.
Functions ¶
func CheckCipherMethod ¶
func GetRequest ¶
Types ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
func NewCipher ¶
NewCipher creates a cipher that can be used in Dial() etc. Use cipher.Copy() to create a new cipher with the same method and password to avoid the cost of repeated cipher initialization.
type Conn ¶
func DialWithRawAddr ¶
func DialWithRawAddr(rawConn *net.Conn, rawaddr []byte, server string, cipher *Cipher) (c *Conn, err error)
This is intended for use by users implementing a local socks proxy. rawaddr shoud contain part of the data in socks request, starting from the ATYP field. (Refer to rfc1928 for more information.)
func (*Conn) GetAndIncrChunkId ¶
Click to show internal directories.
Click to hide internal directories.