Client Request Step Through old - rsanchez-wsu/jfiles GitHub Wiki
JFilesServerThread.run()
- Read in a transmission from the client in the UTF format.
- Send it to the handle method of the server object. Note that although a method of the server object is called the clients thread is used. The method has the synchronized keyword so that wo commands are ton executed at the same time.
##JFilesServer.handle()
- Get the user directory.
- Open files to store command history.
- Get up to space marker in the line read in. This is the command.
- Record Command in the command history.
- Checxk if this is a valid command and return an error to the client if not.
- Use a switch to execute the appropriate command.