Question: Write a TCP server and TCP client that meet the following requirements Write multi-process and multi-threaded TCP server with following specification A server listens on
- Write a TCP server and TCP client that meet the following requirements
- Write multi-process and multi-threaded TCP server with following specification
- A server listens on TCP port 3361, when a client establishes a connection with server, it creates a new child process
- The child process has maximum 2 threads for serving two different clients.
- If the child process is already serving two TCP clients, Parent process creates a new child process and assign a new TCP client to it.
- So, it means that each child process can have two threads to serve two TCP clients.
- The child process asks the username and password from the client and store it on the database.
Step by Step Solution
There are 3 Steps involved in it
Creating a complete TCP server and client with the specified multiprocess and multithreaded architecture is a complex task that involves multiple comp... View full answer
Get step-by-step solutions from verified subject matter experts
