Oct 20, 2022 #1 G gary36 Full Member level 4 Joined Mar 31, 2018 Messages 216 Helped 0 Reputation 0 Reaction score 0 Trophy points 16 Activity points 1,868 I am following the link http://collectivesolver.com/41720/h...t-server-socket-communication-on-windows-in-c as a reference to write TCP server for a single client in mingw/codeblocks environment. How can I modify the code (provided in the link) to handle multiple clients (with and without threading)?
I am following the link http://collectivesolver.com/41720/h...t-server-socket-communication-on-windows-in-c as a reference to write TCP server for a single client in mingw/codeblocks environment. How can I modify the code (provided in the link) to handle multiple clients (with and without threading)?
Oct 20, 2022 #2 andre_luis Super Moderator Staff member Joined Nov 7, 2006 Messages 9,624 Helped 1,190 Reputation 2,399 Reaction score 1,213 Trophy points 1,403 Location Brazil Activity points 55,828 Unless you consider using threads/tasks to handle each connection separately, I see no benefit in using the above code as a start point. Upvote 0 Downvote
Unless you consider using threads/tasks to handle each connection separately, I see no benefit in using the above code as a start point.
Oct 20, 2022 #3 G gary36 Full Member level 4 Joined Mar 31, 2018 Messages 216 Helped 0 Reputation 0 Reaction score 0 Trophy points 16 Activity points 1,868 Ok, can you provide reference which uses multiple threads (winsock version)? Upvote 0 Downvote