| java.lang.Object com.enterprisedt.net.ftp.FTPPassiveDataSocket
FTPPassiveDataSocket | public class FTPPassiveDataSocket implements FTPDataSocket(Code) | | Passive data socket handling class
author: Bruce Blackshaw version: $Revision: 1.7 $ |
Method Summary | |
public void | close() | public void | closeChild() | public InputStream | getInputStream() If active mode, accepts the FTP server's connection - in PASV,
we are already connected. | public int | getLocalPort() Returns the local port to which this socket is bound. | public OutputStream | getOutputStream() If active mode, accepts the FTP server's connection - in PASV,
we are already connected. | public void | setTimeout(int millis) Set the TCP timeout on the underlying control socket. |
cvsId | final public static String cvsId(Code) | | Revision control id
|
FTPPassiveDataSocket | protected FTPPassiveDataSocket(Socket sock)(Code) | | Constructor
Parameters: sock - client socket to use |
closeChild | public void closeChild() throws IOException(Code) | | Does nothing in passive mode
|
getInputStream | public InputStream getInputStream() throws IOException(Code) | | If active mode, accepts the FTP server's connection - in PASV,
we are already connected. Then gets the input stream of
the connection
input stream for underlying socket. |
getLocalPort | public int getLocalPort()(Code) | | Returns the local port to which this socket is bound.
the local port number to which this socket is bound |
getOutputStream | public OutputStream getOutputStream() throws IOException(Code) | | If active mode, accepts the FTP server's connection - in PASV,
we are already connected. Then gets the output stream of
the connection
output stream for underlying socket. |
setTimeout | public void setTimeout(int millis) throws IOException(Code) | | Set the TCP timeout on the underlying control socket.
If a timeout is set, then any operation which
takes longer than the timeout value will be
killed with a java.io.InterruptedException.
Parameters: millis - The length of the timeout, in milliseconds |
|
|