Documentation ¶
Index ¶
Constants ¶
View Source
const MethodNone = "none"
Variables ¶
View Source
var ( ErrMissingPassword = E.New("missing password") ErrPacketTooShort = E.New("packet too short") )
Functions ¶
func RegisterMethod ¶
func RegisterMethod(methods []string, creator MethodCreator)
Types ¶
type Method ¶
type Method interface { DialConn(conn net.Conn, destination M.Socksaddr) (net.Conn, error) DialEarlyConn(conn net.Conn, destination M.Socksaddr) net.Conn DialPacketConn(conn net.Conn) N.NetPacketConn }
func CreateMethod ¶
type MethodCreator ¶
type MethodOptions ¶
Click to show internal directories.
Click to hide internal directories.