I am still lost on how to group all connected sockets and send a message to every client?
Printable View
I am still lost on how to group all connected sockets and send a message to every client?
In the client-server model the client makes the initial communication with the server and the server only responds to these requests.
the server is passive, it never sends to the client first.
You are probably trying to re-think a solution to a problem that has already been solved. Have a look at these examples:
http://tangentsoft.net/wskfaq/exampl...ics/index.html