Reminder of the second assignment, not due for a while yet.
You are to write a matched pair of programs, a server and client,
to perform internet file transfers. It is acceptable to use all
or any of the sample programs I provided
(server.c,
client.c), but don't expect to be
able to make a few edits and have the assigment done effortlessly.
This is not a very difficult assignment, but will take some time.
Requirements
- You should be able to start the server running on a computer and leave
it unattended.
- The client should be capable of connecting to the server over the internet,
and under user command retrieve a file from the server, or send a file to the
server. Make sure that it doesn't only work for text files.
- To prevent unfriendly access to your files, it would be a good idea to
require the client to send a password that the server verifies before
accepting any transfer commands.
Things to remember
- To start a process running in the background, put an ampersand (&)
at the very end of the command you use to start it.
- To make a running program survive you logging out, type nohup
before the command that starts it.
- To stop a background process, enter the command
kill -KILL processnum
- If you forget the server's process number (which is displayed whenever
you start a program with an & at the end of the command line) use the ps
command.
- If you forget the paramters required by a particular system function,
don't waste hours looking for it in a book, enter the command
man&nbps;