At work we have a superbly crap application we use for alerting all staff with small notices (popups) and other communication utilities. I thought I'd give myself a new project, so I want to code my own client/server app like this.
Basically what I need to code is a server that can send a message to all the connected clients, but I havent really had much practice with sockets. Ive managed to create a HTTP server that allowed 1 client to connect, but nothing with this amount of clients.
Im always stumped as to how I should go about sending data through all the connected sockets, does anyone know of an example code for a really simple multi socket server?
Take a look at Apache Qpid. It's an enterprise messaging system that includes a fanout (broadcast) exchange. The C++ API is pretty clean. It also provides Java, C#, Python and Ruby client libraries. They have lots of good examples that should get you going.