A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Broadcast ?

  1. #1
    Junior Member
    Join Date
    Mar 2001
    Posts
    11
    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.

  2. #2
    Senior Member
    Join Date
    Nov 2000
    Posts
    123
    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

  3. #3
    Junior Member
    Join Date
    Mar 2001
    Posts
    11
    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 ?


  4. #4
    Senior Member
    Join Date
    Nov 2000
    Posts
    123
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center