SE 450 - Object Oriented Software
Development
Fall 2001./2002
Homework #5
Design and implement a client/server program that allows a user
to retrieve text files from a remote server. You have to implement both
the client and the server portion. The requirements are:
-
The user should be able specify the full path of the file that he/she wants.
For example, if I want to retrieve file "C:\abc.txt" from the server I would type
in "C:\abc.txt".
-
The user should also be able to specify where he/she wants to
put the file locally. For example, if I want to save it to "C:\mike" they should
type in "C:\mike".
-
If remote file does not exsit, the user should be alerted to this fact and the operation
canceled.
-
If local directory does not exsit, the user should be give the chance to either create it or
cancel the operation.
-
If the remote file does exsit, the server should send the user the contents of the file and then close
the connection to the client.
-
The server should be able to handle multiple concurrent users at once. (hint: multithreaded!!)
-
Once the client gets the file from the server, it should save it to the location specified
and in the file name that is the same as the original file.
-
Once the file transfer is complete, the user should be able to initiate another file transfer.