GROUP MEMBERS ------------- Muhammad Rashid Mahfooz id: rmmuhamm Salman Zubair id: sxzubair Syed Shahzad Ali id: ssali COURSE ------ CS 742 Computer Communication Networks Assignment # 2 INSTRUCTOR ---------- J. Ge INSTRUCTIONS TO BUILD YOUR APPLICATION PROGRAMS ---------------------------------------------- To build the applications make file is provided to produce the executable files for all the three programs. If you just type make then it will produce the executable applications namely gethost, daytimetcpsrv3, daytimetcpcli3. Command : make If you just want to compile the daytimetcpsrv3.c and daytimetcpcli3.c then you must have to type make daytime on the command prompt Command : daytime INSTRUCTIONS TO TEST THE PROGRAM -------------------------------- There are three programs : 1) gethost This program provides to user the facility to get the ip address and hostname of any machine on internet. To find the host by ipaddress type: gethost -r To find the host by hostname type: gethost 2) daytimetcpsrv3 This is a server program which accepts the request form the client program and provides the current date and time to the client. To run the server program type : daytimetcpsrv3 To run the server program in back ground, type : daytimetcpsrv3 3) daytimetcpcli3 This is a client program which request the server (whose address is specified in the command line) to get the server current date time To run the client program type : daytimetcpcli3 MEMBER'S CONTRIBUTION --------------------- Salman Zubair wrote the gethost.c and debuged it too. Wrote his part of program in the makefile for compilation. He typed the instruction to build your application programs. Designed the title page of hard copy. RashidMahfooz wrote the daytimetcpcli3.c and debuged it too. Wrote his part of program in the make file for compilation. He typed instructions to test the program. Downloaded the code from the authour's website. Syed Shahzad Ali wrote the daytimetcpsrv.c and debugged it too. Wrote his part of program in the make file for compilation. He typed the members contribution in the README file. Final error checking of all programs.