Multi-Connection Server Application

Hey All,

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?
Last edited on
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.

http://qpid.apache.org/
You could look at my socket program, it sounds pretty close to what you need, here's a link

http://sourceforge.net/projects/chatifinitus/files/Chat_all.zip/download

If you have any problems, just email me, ultifinitus@gmail.com
Thanks guys ill take a look!

Much Appreciated.
Topic archived. No new replies allowed.