Can we build a server app using b4J that will allow us to broadcast a a stream of data from one connection to all other connections, preferably without having to loop thru all connections and writing to each one.
Yes, there will be a wan/lan environment, dedicated PC running the Server App, connections will be made from the client app, either from within the local network or from Outside. This is a real project for our company so I don't want to explicitly say what we are doing, but you know what I mean.
You should decide whether you want to use UDP broadcasting or TCP. I'm not sure whether it is possible to implement UDP broadcasting over the internet. The current UDP implementation in Network library doesn't support broadcasting.
I recommend you to start with some tests. You may be able to use TCP with 200 connected devices.
Ok, i I use TCP, can I create threads within the server app that can feed off a global data buffer so the servicing is handled by each thread. Do you get my meaning ?