The Unix Socket Protocol | |
In this lab, you will write a simple client / server program. You will be
required to submit the code you wrote and a report answering a few
questions. | |
LAB MATERIALS | |
LAB ASSIGNMENT |
Complete the client / server program in client.c and server.c.
This simple program should send the array of strings hard coded in the
client process to the server process, which should convert them to
uppercase, and send them back to the client. Use printf statements to
narrate the flow of this program. To build your program, open a terminal and type: bash$ makeTo test your program, first, run your server process: bash$ ./serverLeave the server running, open another terminal, and run the client process: bash$ ./clientA correct implementation should give the following output. From the server process: bash$ ./server RECEIVED: this is the first string from the client SENDING: THIS IS THE FIRST STRING FROM THE CLIENT RECEIVED: this is the second string from the client SENDING: THIS IS THE SECOND STRING FROM THE CLIENT RECEIVED: this is the third string from the client SENDING: THIS IS THE THIRD STRING FROM THE CLIENTAnd from the client process: bash$ ./client SENDING: this is the first string from the client RECEIVED: THIS IS THE FIRST STRING FROM THE CLIENT SENDING: this is the second string from the client RECEIVED: THIS IS THE SECOND STRING FROM THE CLIENT SENDING: this is the third string from the client RECEIVED: THIS IS THE THIRD STRING FROM THE CLIENT After you have finished your implementation, you need to complete a short report that answers the following questions:
make tar |