public class FtpServer extends java.lang.Object implements RunnableWhichThrows<java.io.IOException>, Stoppable
| Constructor and Description |
|---|
FtpServer(java.net.InetSocketAddress endpoint,
int backlog,
Ftplett ftplett)
This
FtpServer will accept connections and run a new FtpSession with the given
Ftplett. |
| Modifier and Type | Method and Description |
|---|---|
void |
run()
"To run" an instance means to call this method and wait until it returns.
|
void |
stop()
Returns when this
Stoppable has completely stopped. |
public FtpServer(java.net.InetSocketAddress endpoint,
int backlog,
Ftplett ftplett)
throws java.io.IOException
FtpServer will accept connections and run a new FtpSession with the given
Ftplett.endpoint - The InetAddress and local port the server will bind to; InetSocketAddress.InetSocketAddress(int) will accept connections on any/all local addresses;
port number zero will pick an ephemeral portjava.io.IOExceptionpublic void run()
throws java.io.IOException
RunnableWhichThrowsrun in interface RunnableWhichThrows<java.io.IOException>java.io.IOException