B4J Question Steaming Server

Jmu5667

Well-Known Member
Licensed User
Longtime User
Hello Everyone !

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.

Any advice would be gratefully appreciated.

Regards

John
 
Last edited:

Jmu5667

Well-Known Member
Licensed User
Longtime User
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.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
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.
 
Upvote 0

Jmu5667

Well-Known Member
Licensed User
Longtime User
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 ?
 
Upvote 0
Top