Versions in this module Expand all Collapse all v1 v1.0.1 Mar 3, 2020 Changes in this version + func MarshalAuthReply(ver int, m socks.AuthMethod) ([]byte, error) + func MarshalCmdReply(ver int, reply socks.Reply, a *socks.Addr) ([]byte, error) + func NoAuthRequired(rw io.ReadWriter, b []byte) error + func NoProxyRequired(rw io.ReadWriter, b []byte) error + type AuthRequest struct + Methods []socks.AuthMethod + Version int + func ParseAuthRequest(b []byte) (*AuthRequest, error) + type CmdRequest struct + Addr socks.Addr + Cmd socks.Command + Version int + func ParseCmdRequest(b []byte) (*CmdRequest, error) + type Server struct + func NewServer(authFunc, cmdFunc func(io.ReadWriter, []byte) error) (*Server, error) + func (s *Server) Addr() net.Addr + func (s *Server) Close() error + func (s *Server) TargetAddr() net.Addr