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


Variable Index

 o Client
The current Client communcation object
 o Command
The current command being requested
 o CurrentDirectory
 o CurrentUser
 o Log
 o LoggedIn

Constructor Index

 o Connection(Communication)

Method Index

 o run()
The main loop for the client communication.

Variables

 o Client
 private Communication Client
The current Client communcation object

 o Command
 private FTPCommand Command
The current command being requested

 o Log
 private FTPLog Log
 o CurrentUser
 private User CurrentUser
 o CurrentDirectory
 private String CurrentDirectory
 o LoggedIn
 private boolean LoggedIn

Constructors

 o Connection
 public Connection(Communication ClientConnection)

Methods

 o 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