public class SOCKS5Connector extends FTPConnector
closeTimeout, connectionTimeout, readTimeout| Constructor and Description |
|---|
SOCKS5Connector(java.lang.String socks5host,
int socks5port)
It builds the connector.
|
SOCKS5Connector(java.lang.String socks5host,
int socks5port,
java.lang.String socks5user,
java.lang.String socks5pass)
It builds the connector.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.Socket |
connectForCommunicationChannel(java.lang.String host,
int port)
This methods returns an established connection to a remote host, suitable
for a FTP communication channel.
|
java.net.Socket |
connectForDataTransferChannel(java.lang.String host,
int port)
This methods returns an established connection to a remote host, suitable
for a FTP data transfer channel.
|
abortConnectForCommunicationChannel, setCloseTimeout, setConnectionTimeout, setReadTimeout, setUseSuggestedAddressForDataConnections, tcpConnectForCommunicationChannel, tcpConnectForDataTransferChannelpublic SOCKS5Connector(java.lang.String socks5host,
int socks5port,
java.lang.String socks5user,
java.lang.String socks5pass)
socks5host - The socks5 proxy host name.socks5port - The socks5 proxy port.socks5user - The socks5 proxy user (optional, can be set to null).socks5pass - The socks5 proxy password (optional, can be set to null if
also socks5user is null).public SOCKS5Connector(java.lang.String socks5host,
int socks5port)
socks5host - The socks5 proxy host name.socks5port - The socks5 proxy port.public java.net.Socket connectForCommunicationChannel(java.lang.String host,
int port)
throws java.io.IOException
FTPConnectorconnectForCommunicationChannel in class FTPConnectorhost - The remote host name or address.port - The remote port.java.io.IOException - If the connection cannot be established.public java.net.Socket connectForDataTransferChannel(java.lang.String host,
int port)
throws java.io.IOException
FTPConnectorconnectForDataTransferChannel in class FTPConnectorhost - The remote host name or address.port - The remote port.java.io.IOException - If the connection cannot be established.