Class Connection
java.lang.Object
|
+----java.lang.Thread
|
+----Connection
- public class Connection
- extends Thread
The Connection class is responsible for handling the interaction of
each user connection
-
Client
- The current Client communcation object
-
Command
- The current command being requested
-
CurrentDirectory
-
-
CurrentUser
-
-
Log
-
-
LoggedIn
-
-
Connection(Communication)
-
-
run()
- The main loop for the client communication.
Client
private Communication Client
- The current Client communcation object
Command
private FTPCommand Command
- The current command being requested
Log
private FTPLog Log
CurrentUser
private User CurrentUser
CurrentDirectory
private String CurrentDirectory
LoggedIn
private boolean LoggedIn
Connection
public Connection(Communication ClientConnection)
run
public void run()
- The main loop for the client communication. Loops until the connection
is broken, waiting for commands, then executing them.
- Overrides:
- run in class Thread