Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultSelector is the default client selector. DefaultSelector gosocks5.Selector = &clientSelector{} )
Functions ¶
func Dial ¶
func Dial(addr string, options ...DialOption) (net.Conn, error)
Dial connects to the SOCKS5 server.
func DialContext ¶ added in v0.0.3
DialContext connects to the SOCKS5 server with the given context.
Types ¶
type DialOption ¶
type DialOption func(opts *DialOptions)
DialOption allows a common way to set dial options.
func SelectorDialOption ¶
func SelectorDialOption(selector gosocks5.Selector) DialOption
func TimeoutDialOption ¶
func TimeoutDialOption(timeout time.Duration) DialOption
Click to show internal directories.
Click to hide internal directories.