1. Implement a fully concurrent application with a TCP server acting as a directory server and client programs allowing concurrent connection and message transfer (Eg. Chat system).
2. Implement a fully concurrent application with a TCP server acting as a dummy βmathβ server and client programs allowing concurrent connection and message transfer. The server should be a multi-process server that will fork a process for every new client it receives and it should be able to handle addition, multiplication, subtraction, and division operations on two integer operands. The protocol between the client and server is as follows.
β’ The client connects to the server, and then asks the user for input. The user enters a simple arithmatic expression string (e.g., β1 + 2β, β5 – 6β, β3 * 4β, β8/2β). The userβs input is sent to the server via the connected socket.
β’ The server reads the userβs input from the client socket, evaluates the expression, and sends the result back to the client.
β’ The client should display the serverβs reply to the user, and prompt the user for the next input, until the user terminates the client program with Ctrl+C.
Server: Client 1: Client 2:
Connected with client 1 Connected to the server enter the querry: 22 + 44
[Client1]: 22 + 44
[Server]: 66 [Server]: 66
Connected with client 2 Connected to the server enter the querry: 3 * 4
[Client2]: 3 * 4
[Server]: 12 [Server]: 12
1
[SOLVED] CS3093D - Assignment #4
39.99 $
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
Securely Powered by:
- Assignment_4-wjmxfz.zip






