com.coldcore.coloradoftp.connection |
|
Java Source File Name | Type | Comment |
BrokenPipeException.java | Class | Exception which is thrown by connections when users disconnect. |
Connection.java | Interface | Data or control connection.
Connections read and write data from and to users.
Life cycle of a connection is very simple. |
ConnectionPool.java | Interface | Pool of active connections.
All connections should be added to connection pools. |
ControlConnection.java | Interface | Control connection.
When user connects to a server a control connection is created and assigned to him/her.
One user may have only one control connection which lives until user disconnects.
Control connection accepts user commands, executes them and sends replies.
Control connection acts as a main point for all users' operations, every user is
identified by a control connection. |
ControlConnector.java | Interface | Accepts incoming control connections.
When connection is accepted on a predefined port, this class configures it,
writes a welcome/reject message into it and adds it to a connection pool which will
serve it till the connection dies.
Server should not just drop a connection leaving user with no response message. |
DataConnection.java | Interface | Data connection.
Data connections perform data transfers between users and the server. |
DataConnectionCallback.java | Interface | Data connection callback.
When data connection terminates it notifies the callback. |
DataConnectionInitiator.java | Interface | Initiates a data connection with user.
This class establishes a new connection to user's machine as a result of a PORT command.
This class is a part of a control connection and is created on a per user basis.
When a user wants a server to establish a data connection with his/her machine, this class
is executed by a control connection untill a data connection is established or failed.
In the latter case it is a responsibility of this class to send a failed reply to the user
(this will also clear the INTERRUPT state of the control connection).
Otherwise, if data connection is established, this class must add it to a connection pool
and set control connection's reference to the new data connection.
This class can establish connection with user only after user gets "150" reply from the
control connection and not before. |
DataConnectionMode.java | enum | Data connection transfer mode. |
DataPortListener.java | Interface | Listens for incoing data connections.
This class is constantly listening on a predefined port. |
DataPortListenerSet.java | Interface | Set of data port listeners. |
PoisonedException.java | Class | Exception which is thrown by a connection when it dies from poison. |
TerminatedException.java | Class | Exception which is thrown by a connection when it is terminated. |
TransferAbortedException.java | Class | Exception which is thrown by data connections when users abort data transfers or disconnect
while data transfers are still active. |
TransferCompleteException.java | Class | Exception which is thrown by a data connection when a data transfer finishes successfully. |