public class SOCKS4Connector extends FTPConnector
closeTimeout, connectionTimeout, readTimeout
Constructor and Description |
---|
SOCKS4Connector(java.lang.String socks4host,
int socks4port)
It builds the connector.
|
SOCKS4Connector(java.lang.String socks4host,
int socks4port,
java.lang.String socks4user)
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, tcpConnectForDataTransferChannel
public SOCKS4Connector(java.lang.String socks4host, int socks4port, java.lang.String socks4user)
socks4host
- The socks4 proxy host name.socks4port
- The socks4 proxy port.socks4user
- The socks4 proxy user (optional, can be set to null).public SOCKS4Connector(java.lang.String socks4host, int socks4port)
socks4host
- The socks4 proxy host name.socks4port
- The socks4 proxy port.public java.net.Socket connectForCommunicationChannel(java.lang.String host, int port) throws java.io.IOException
FTPConnector
connectForCommunicationChannel
in class FTPConnector
host
- 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
FTPConnector
connectForDataTransferChannel
in class FTPConnector
host
- The remote host name or address.port
- The remote port.java.io.IOException
- If the connection cannot be established.