Class: Net::SSH::Proxy::SOCKS4

Class | Net::SSH::Proxy::SOCKS4
In: | lib/net/ssh/proxy/socks4.rb
Parent: | Object

An implementation of a socket factory that returns a socket which will tunnel the connection through a SOCKS4 proxy. It allows explicit specification of the user, but if it is not given it will look in the SOCKS_USER and CONNECT_USER environment variables as well.

### Methods

new open

### Constants

SOCKS_VERSION | = | 4
SOCKS_CMD_CONNECT | = | 1
SOCKS_GRANTED | = | 90
SOCKS_REJECTED | = | 91
SOCKS_IDENTD_REJECT | = | 92
SOCKS_IDENTD_BAD | = | 93

### Public Class methods

new( proxy_host, proxy_port=1080, options={} )

Create a new proxy connection to the given proxy host and port. Optionally, a @:user@ option may be given to identify the username with which to authenticate.

### Public Instance methods

open( host, port )

Return a new socket connected to the given host and port via the proxy that was requested when the socket factory was instantiated.

[Validate]