com.Prominic.jFTPd
Interface Connection

All Known Implementing Classes:
FTPConnection

public interface Connection


Method Summary
 java.net.InetAddress getInetAddress()
          Returns the InetAddress where this connection is established.
 java.util.Date getLastCommandTime()
          Returns the last date/time when a command was sent via the connection.
 java.net.Socket getSocket()
          Returns the socket of this connection on which the communication is done.
 boolean isBusy()
          Returns the status of the connection
 void terminate()
          Terminates a connection.
 

Method Detail

getInetAddress

java.net.InetAddress getInetAddress()
Returns the InetAddress where this connection is established.

Returns:
InetAddress

getLastCommandTime

java.util.Date getLastCommandTime()
Returns the last date/time when a command was sent via the connection.

Returns:
Date objece.

getSocket

java.net.Socket getSocket()
Returns the socket of this connection on which the communication is done.

Returns:
socket

isBusy

boolean isBusy()
Returns the status of the connection

Returns:
true if data is transfered through the connection, false when idle.

terminate

void terminate()
Terminates a connection.