On Wed, Oct 29, 2008 at 2:38 PM, Sisk, Brad <[EMAIL PROTECTED]> wrote:
> FtpServer uses the standard, J2SE Socket class, as do most servers and
> clients, for network streaming of data. This is part of the J2SE class
> library java.net package (java.net.Socket, and java.net.ServerSocket).
> A good place to start looking at how the sockets are initialized and
> used are the (Mina) classes:
> org.apache.mina.transport.socket.SocketAcceptor,
> org.apache.mina.transport.socket.SocketSessionConfig,
> and org.apache.mina.transport.socket.nio.NioSocketAcceptor.

Please note that MINA does not use the standard Socket/ServerSocket
classes but rather the NIO SocketChannel/ServerSocketChannel classes.
They enable async IO rather than the blocking IO used in Socket.

Now, FtpServer only uses MINA for the control socket at the moment, so
you're still correct. For data transfers, we still use regular
Socket/ServerSocket.

> So the actual streaming of bytes and reception of the bytes for a
> transferred file is not handled directly in the classes of the FTPServer
> jars, but rather in lower level classes from the Mina jars, and the Java
> Standard library.

As above, we do not actually use MINA for data transfers.

/niklas

Reply via email to