Question: The code should be in C language Goal : To improve the client-server model introduced in the class. Requirements : The server should be able
The code should be in C language
Goal: To improve the client-server model introduced in the class.
Requirements:
The server should be able to accept requests from multiple clients and communicate with them.
Each client should be able to communicate multiple rounds of messages with the server.
Whenever the server receives a message from a client, it replies with "I got your message".
To implement the server with multithreading.
A client program should terminate its communication with the server when its user types in "EXIT", causing no effect on other clients.
You can manually terminate the server using Ctrl_C, or you can implement it to terminate itself on a certain input from keyboard.
The server and client should take arguments in the following formats
server.exe [port number]
client.exe [servers name] [port number]
Your programs will be tested and graded using computers under the LINUX/UNIX mode.
To submit
Source codes
Executable files
A README file showing the commands for compiling and running your programs.
DO NOT submit any junk files (e.g. debug files)


aw Design Layout Rererences iiings Review iew HeipTel me wnat youWant to do Pseudo code for the server Create a socket Bind the socket to server's address and port Listen to the socket Loop When a request arrives, accept the request and establish connection Generate a new thread (Threadfunction) to take care of the communication on the new connection (you need to pass the newsockfd to it) void * Threadfunction (int mysockfd) loop aw Design Layout Rererences iiings Review iew HeipTel me wnat youWant to do Pseudo code for the server Create a socket Bind the socket to server's address and port Listen to the socket Loop When a request arrives, accept the request and establish connection Generate a new thread (Threadfunction) to take care of the communication on the new connection (you need to pass the newsockfd to it) void * Threadfunction (int mysockfd) loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
