com.sshtools.j2ssh.net

Class SocksProxySocket

Implemented Interfaces:
TransportProvider

public class SocksProxySocket
extends Socket
implements TransportProvider

Version:
$Revision: 1.14 $
Author:
$author$

Field Summary

static int
SOCKS4
static int
SOCKS5

Method Summary

static SocksProxySocket
connectViaSocks4Proxy(String remoteHost, int remotePort, String proxyHost, int proxyPort, String userId)
static SocksProxySocket
connectViaSocks5Proxy(String remoteHost, int remotePort, String proxyHost, int proxyPort, String username, String password)
static SocksProxySocket
connectViaSocks5Proxy(String remoteHost, int remotePort, String proxyHost, int proxyPort, boolean localLookup, String username, String password)
String
getProviderDetail()
String
toString()

Field Details

SOCKS4

public static final int SOCKS4
Field Value:
4

SOCKS5

public static final int SOCKS5
Field Value:
5

Method Details

connectViaSocks4Proxy

public static SocksProxySocket connectViaSocks4Proxy(String remoteHost,
                                                     int remotePort,
                                                     String proxyHost,
                                                     int proxyPort,
                                                     String userId)
            throws IOException,
                   UnknownHostException
Parameters:
remoteHost -
remotePort -
proxyHost -
proxyPort -
userId -
Returns:

connectViaSocks5Proxy

public static SocksProxySocket connectViaSocks5Proxy(String remoteHost,
                                                     int remotePort,
                                                     String proxyHost,
                                                     int proxyPort,
                                                     String username,
                                                     String password)
            throws IOException,
                   UnknownHostException
Parameters:
remoteHost -
remotePort -
proxyHost -
proxyPort -
username -
password -
Returns:

connectViaSocks5Proxy

public static SocksProxySocket connectViaSocks5Proxy(String remoteHost,
                                                     int remotePort,
                                                     String proxyHost,
                                                     int proxyPort,
                                                     boolean localLookup,
                                                     String username,
                                                     String password)
            throws IOException,
                   UnknownHostException
Parameters:
remoteHost -
remotePort -
proxyHost -
proxyPort -
localLookup -
username -
password -
Returns:

getProviderDetail

public String getProviderDetail()
Specified by:
getProviderDetail in interface TransportProvider
Returns:

toString

public String toString()
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.