Write a TCP server and TCP client that meet the following requirements Write multi-process and multi-threaded TCP
Fantastic news! We've Found the answer you've been seeking!
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 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.
Related Book For
Posted Date: