Versions in this module Expand all Collapse all v0 v0.2.0 Jun 12, 2019 v0.1.0 Jun 11, 2019 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