Your task is to extend TCP server file and allow multiple client connections (and chats). At present, the ports are hardcoded in the programs. For ease, you can make port input as part of the command line arguments for the clients so that you can avoid hard coding port numbers for each newly created client. At the minimum, two clients should be able to connect with the server (you can test more than 2 for robustness). Please upload your TCP server and client .cpp (or .c) files and write your answers with screenshots in your report. Your report can indicate a brief description of what parts were extended in the code to allow multiple clients and what is your output (with the help of screenshots). For multiple client examples, please refer to the bulb activity that was uploaded in the Week 8 folder.
Your task is to extend TCP server file and allow multiple client connections (and chats). At present, the ports are hardcoded in the
Trending now
This is a popular solution!
Step by step
Solved in 2 steps