Versions in this module Expand all Collapse all v0 v0.2.0 Sep 30, 2022 Changes in this version + const ATYPDomain + const ATYPIPv4 + const ATYPIPv6 + const BIND + const CONNECT + const CmdBind + const CmdConnect + const CmdUDP + const ErrAddressNotSupported + const ErrCommandNotSupported + const ErrConnectionNotAllowed + const ErrConnectionRefused + const ErrGeneralFailure + const ErrHostUnreachable + const ErrNetworkUnreachable + const ErrTTLExpired + const HOSTNAME + const IPV4 + const IPV6 + const InfoUDPAssociate + const MaxAddrLen + const MethodGSSAPI + const MethodNone + const MethodUnsupportAll + const MethodUsernamePassword + const RepCommandNotSupported + const RepConnectionRefused + const RepHostUnreachable + const RepNetworkUnreachable + const RepNotAllowed + const RepServerFailure + const RepSuccess + const RepTTLExpired + const ReqAddressNotSupported + const STATUS_CONNECT + const STATUS_VERIFY + const UDPASSOCIATE + const UserPassStatusFailure + const UserPassStatusSuccess + const UserPassVer + const V4 + const V4A + const V5 + const Ver + var UDPEnabled = false + func NewRequest(conn *net.Conn) *request + type Addr []byte + func HandShake(rw io.ReadWriter) (Addr, error) + func ParseAddr(s string) Addr + func ReadAddr(r io.Reader) (Addr, error) + func SplitAddr(b []byte) Addr + func (a Addr) String() string + type Datagram struct + Atyp byte + Data []byte + DstAddr []byte + DstPort []byte + Frag byte + Rsv []byte + type Error byte + func (err Error) Error() string + type NegotiationReply struct + Method byte + Ver byte + type NegotiationRequest struct + Methods []byte + NMethods byte + Ver byte + type Reply struct + Atyp byte + BndAddr []byte + BndPort []byte + Rep byte + Rsv byte + Ver byte + type UserPassNegotiationReply struct + Status byte + Ver byte + type UserPassNegotiationRequest struct + Passwd []byte + Plen byte + Ulen byte + Uname []byte + Ver byte