Versions in this module Expand all Collapse all v0 v0.0.1 Dec 6, 2018 Changes in this version + const AddrDomain + const AddrIPv4 + const CmdBind + const CmdConnect + const Failed + const Granted + const Rejected + const RejectedUserid + const Ver4 + var ErrBadAddrType = errors.New("Bad address type") + var ErrBadCmd = errors.New("Bad Command") + var ErrBadFormat = errors.New("Bad format") + var ErrBadVersion = errors.New("Bad version") + var ErrShortDataLength = errors.New("Short data length") + type Addr struct + Host string + Port uint16 + Type int + func (addr *Addr) Decode(b []byte) error + func (addr *Addr) Encode(b []byte) error + func (addr *Addr) String() string + type Reply struct + Addr *Addr + Code uint8 + func NewReply(code uint8, addr *Addr) *Reply + func ReadReply(r io.Reader) (*Reply, error) + func (r *Reply) String() string + func (r *Reply) Write(w io.Writer) (err error) + type Request struct + Addr *Addr + Cmd uint8 + Userid []byte + func NewRequest(cmd uint8, addr *Addr, userid []byte) *Request + func ReadRequest(r io.Reader) (*Request, error) + func (r *Request) String() string + func (r *Request) Write(w io.Writer) (err error)