{"repo":"txthinking/socks5","free":true,"listed":false,"github":"https://github.com/txthinking/socks5","clone":"git clone https://github.com/txthinking/socks5.git","description":"SOCKS Protocol Version 5 Library in Go. Full TCP/UDP and IPv4/IPv6 support","language":"Go","stars":787,"topics":["socks","socks5","socks-protocol","proxy"],"license":"MIT","category":"networking-infra","readme_excerpt":"socks5 中文 🗣 News 🩸 Youtube SOCKS Protocol Version 5 Library. Full TCP/UDP and IPv4/IPv6 support. Goals: KISS, less is more, small API, code is like the original protocol. ❤️ A project by txthinking.com Install Struct is like concept in protocol - Negotiation: - type NegotiationRequest struct - func NewNegotiationRequest(methods []byte) , in client - func (r NegotiationRequest) WriteTo(w io.Writer) , client writes to server - func NewNegotiationRequestFrom(r io.Reader) , server reads from client - type NegotiationReply struct - func NewNegotiationReply(method byte) , in server - func (r NegotiationReply) WriteTo(w io.Writer) , server writes to client - func NewNegotiationReplyFrom(r io.Reader) , client reads from server - User and password negotiation: - type UserPassNegotiationRequest struct - func NewUserPassNegotiationRequest(username []byte, password []byte) , in client - func (r UserPassNegotiationRequest) WriteTo(w io.Writer) , client writes to server - func NewUserPassNegotiationRequestFrom(r io.Reader) , server reads from client - type UserPassNegotiationReply struct - func NewUserPassNegotiationReply(status byte) , in server - func (r UserPassNegotiationReply) WriteTo(w io.Writer) , server writes to client - func NewUserPassNegotiationReplyFrom(r io.Reader) , client reads from server - Request: - type Request struct - func NewRequest(cmd byte, atyp byte, dstaddr []byte, dstport []byte) , in client - func (r Request) WriteTo(w io.Writer) , client writes to server - f","default_branch":null,"files":null,"tree":[],"storefront":"/r/txthinking","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/txthinking/socks5/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}