public class FtpServer extends Object implements de.unkrig.commons.lang.protocol.RunnableWhichThrows<IOException>, de.unkrig.commons.lang.protocol.Stoppable
Constructor and Description |
---|
FtpServer(InetSocketAddress endpoint,
int backlog,
Ftplett ftplett)
This
FtpServer will accept connections and run a new FtpSession with the given
Ftplett. |
public FtpServer(InetSocketAddress endpoint, int backlog, Ftplett ftplett) throws 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 portIOException
public void run() throws IOException
run
in interface de.unkrig.commons.lang.protocol.RunnableWhichThrows<IOException>
IOException
public void stop()
stop
in interface de.unkrig.commons.lang.protocol.Stoppable
Copyright © 2018 Arno Unkrig. All rights reserved.