public class DirectConnector extends FTPConnector
closeTimeout, connectionTimeout, readTimeout
Constructor and Description |
---|
DirectConnector() |
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 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.