Documentation ¶
Index ¶
Constants ¶
View Source
const ( MethodNoAuthRequired = Method(0x00) MethodGSSAPI = Method(0x01) MethodUsernamePassword = Method(0x02) MethodNoAcceptable = Method(0xFF) ATypeIPv4 = ATyp(0x01) ATypeDomainName = ATyp(0x03) ATypeIPv6 = ATyp(0x04) CmdConnect = Cmd(0x01) CmdBind = Cmd(0x02) CmdUDPAssociate = Cmd(0x03) RepSucceeded = Rep(0x00) RepServerFailure = Rep(0x01) RepConnectionNotAllowedByRuleset = Rep(0x02) RepNetworkUnreachable = Rep(0x03) RepHostUnreachable = Rep(0x04) RepConnectionRefused = Rep(0x05) RepTTLExpired = Rep(0x06) RepCmdNotSupported = Rep(0x07) RepATypNotSupported = Rep(0x08) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MethodReply ¶
type MethodReply struct { Method // contains filtered or unexported fields }
func NewMethodReply ¶
func NewMethodReply(method Method) MethodReply
func (MethodReply) Encode ¶
func (mr MethodReply) Encode() []byte
type MethodRequest ¶
type MethodRequest struct {
// contains filtered or unexported fields
}
func NewMethodRequestFrom ¶
func NewMethodRequestFrom(b []byte) (mr MethodRequest, err error)
func (MethodRequest) Methods ¶
func (mr MethodRequest) Methods() []Method
Click to show internal directories.
Click to hide internal directories.