|
edtFTPj | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.enterprisedt.net.ftp.FTPPassiveDataSocket
public class FTPPassiveDataSocket
Passive data socket handling class
| Field Summary | |
|---|---|
static String |
cvsId
Revision control id |
protected Socket |
sock
The underlying socket |
| Constructor Summary | |
|---|---|
protected |
FTPPassiveDataSocket(Socket sock)
Constructor |
| Method Summary | |
|---|---|
void |
close()
Closes underlying socket |
void |
closeChild()
Does nothing in passive mode |
InputStream |
getInputStream()
If active mode, accepts the FTP server's connection - in PASV, we are already connected. |
int |
getLocalPort()
Returns the local port to which this socket is bound. |
OutputStream |
getOutputStream()
If active mode, accepts the FTP server's connection - in PASV, we are already connected. |
void |
setTimeout(int millis)
Set the TCP timeout on the underlying control socket. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String cvsId
protected Socket sock
| Constructor Detail |
|---|
protected FTPPassiveDataSocket(Socket sock)
sock - client socket to use| Method Detail |
|---|
public void setTimeout(int millis)
throws IOException
setTimeout in interface FTPDataSocketmillis - The length of the timeout, in milliseconds
IOExceptionpublic int getLocalPort()
getLocalPort in interface FTPDataSocket
public OutputStream getOutputStream()
throws IOException
getOutputStream in interface FTPDataSocketIOException
public InputStream getInputStream()
throws IOException
getInputStream in interface FTPDataSocketIOException
public void close()
throws IOException
close in interface FTPDataSocketIOException
public void closeChild()
throws IOException
closeChild in interface FTPDataSocketIOException
|
edtFTPj | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||