Documentation
¶
Index ¶
- Constants
- type Addr
- type Parse
- func (p *Parse) Http503() []byte
- func (p *Parse) MessageDecode(raw []byte) (string, *Addr, error)
- func (p *Parse) MessageEncode(password string, addr *Addr) ([]byte, error)
- func (p *Parse) ResponseDecode(raw []byte) (bool, string, error)
- func (p *Parse) ResponseEncode(status bool, message string) []byte
- type Socks5
Constants ¶
View Source
const ( AllowVerify byte = 0x12 // 通过验证 Success byte = 0x02 // 连接远端成功 Fail byte = 0x03 // 连接远端失败 StringEnd byte = 0x00 // 字符串结尾 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parse ¶
type Parse struct{}
func (*Parse) MessageDecode ¶
MessageDecode 服务端正式接受消息的解码
func (*Parse) MessageEncode ¶
MessageEncode 服务端正式接受消息的编码
func (*Parse) ResponseDecode ¶
ResponseDecode 服务端响应数据的解码
Click to show internal directories.
Click to hide internal directories.