PDA

Click to See Complete Forum and Search --> : Broadcast ?



CyberSeb
05-22-2001, 04:33 AM
Hi,

I make a flash that connect to a XML server to get some XML data. The data are the same for all clients.
Is there a way to broadcast server data to all flash client ?
Or must I create a different socket connexion for all the client ?

I try to broadcast but the flash can't receive anything.
The connect command seems to work only with a socket created by the server only for one client.

Any ideas ?
Thanks.

Emphatic
05-29-2001, 09:13 AM
Hi

This sounds like a server side issue, what XML Socket server are you running?

If you are making your own, make sure you add a chr(0) to the end of every string you send to the flash client.

Steve
http://www.flashnexus.com

CyberSeb
05-31-2001, 06:06 AM
Hi,

Thanks for your response.

Yes I have the zero byte at the end of the string.

When you want to broadcast something to many clients, the clients are not connected to the server, are they ?
If I understand, the server send something to 255.255.255.255.

The Flash XML socket need to be connected to the server.
So the server must use "accept" function. So I think we can't broadcast anything.
The server need to have in memory all the socket connected to each client, and send the data to the client one by one.

Am I right ?

Emphatic
05-31-2001, 06:24 AM
Hi..

Little confused to what you mean.
Each client connects to the socket server.
The server then sends a message to each client connected, if you are 'boradcasting'.

Are you developing your own server, or running a developed one?

For each client you must allow it to connect to the server, and accept data it sends, then send this data to every other client connected.

Broadcast can be clumbersom