Unix C C Environment Clientc Conservthreadc Provided Task1 Modify Clientc Program Accept T Q37065721

For Unix in a C/C++ Environment

Client.c and conServThread.c are provided

Task1. Modify Client.c program to accept two arguments (IPaddress and port number of the concurrent Server with thread -conServThread.c).

Task2. Similarly, modify the Server (conServThread.c) program toaccept an argument which is the port number of the server to bindand listen to.

Task3. Try these two updated programs (server and client) with aport (which is available).

** For example, to find a port (between 30000 and 30999) whichis available, with netstat command.

    netstat -aont | grep “`hostnname-i`:30[0-9][0-9][0-9] “

     Note: the back-tick (backward singlequotation mark to run the command on the run).

——————————-

Also note for a program containing

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.