Class

SOCKS5

Extends:

An implementation of a socket factory that returns a socket which will tunnel the connection through a SOCKS5 proxy. It allows explicit specification of the user and password, but if none are given it will look in the SOCKS_USER/SOCKS_PASSWORD and CONNECT_USER/CONNECT_PASSWORD environment variables as well.

Constants
SOCKS_ADDR_NOT_SUPPORTED
SOCKS_ATYP_DOMAIN
SOCKS_ATYP_IPV4
SOCKS_ATYP_IPV6
SOCKS_CMD_CONNECT
SOCKS_CMD_NOT_SUPPORTED
SOCKS_FAILURE
SOCKS_HOST_UNREACHABLE
SOCKS_METHOD_GSSAPI
SOCKS_METHOD_NONE
SOCKS_METHOD_NO_AUTH
SOCKS_METHOD_PASSWD
SOCKS_NETWORK_UNREACHABLE
SOCKS_NOT_ALLOWED
SOCKS_REFUSED
SOCKS_SUCCESS
SOCKS_TTL_EXPIRED
SOCKS_VERSION
Public Methods
new Create a new proxy connection to the given proxy host and port. Optionally, @:user@ and @:password@ options may be given to identify the username and password with which to authenticate.
open Return a new socket connected to the given host and port via the proxy that was requested when the socket factory was instantiated.
Private Methods
negotiate_password Simple username/password negotiation with the SOCKS5 server.
proxy_password
proxy_user
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.