Hello... I've been working on a simple server using the sockets module and threads (just for fun btw ;p). I want to be able to connect to it by specifying a "channel" and then anything the client sends is recieved by all clients connected to the same "channel". Now I'm thinking I could make this happen by using a globally accessable list of sockets that are associated with each channel, so each client thread on the server can iterate through the list and send the same message to each client socket, but that sounds like a whole lot of iteration/workload for the server? I figured there must be a better solution to this, where perhaps each client thread monitors a shared interface of some kind? I wondered about using something like a UDP broadcast or some other kind of send-once type of method... any ideas how I could set this up? Any ideas would be greatly appreciated!!
Thanks, John