% tar xvfz unpv12e.tar.gz
A directory unpv12e will be created. In
directory ./unpv12e/intro, you can find
the souce code for the daytime server. Starting from
daytimetcpsrv3.c and
daytimetcpcli3.c, you are required to
build your own daytime server and client.
Some requirements should be followed:
unp.h,
should be used.
daytimetcpsrv3
for the server, and daytimetcpcli3 for the client.
The target to build the application is daytime,
which means one can type the following command to build the
application:
% make daytime
% gethost [-r] name
When there's no option, this program prints all the IP addresses
for a host whose name is specified by name in the command.
When option -r is present, the program accepts
an IP address in the dotted notation form and prints all
the domain names for this IP address.
Your program should detect all possible invalid names.
You should share the makefile of the above daytime application. The
target to build the executable is gethost. The source
code file should be gethost.c, or gethost.cc.
The name of the executable should be gethost.
The hard copy should have a cover sheet that contains you names,
account names, course title, assignment number, and etc.
The submission should also include a file called README
that contains the following information:
handin program is 2.
To submit your assignment with the handin program, type:
~cs742/bin/handin 2 files-to-submit
The following files should be submitted:
README Makefile gethost.c daytimetcpsrv3.c daytimetcpcli3.c
Once again please make sure that you are in the student list.