Socket buffers

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view

Socket buffers

I am trying to test the actionscript socket implementation and it
seems like the Progress data event is not dispatched when the server
responds back faster than the player can handle. Is this a known issue
as I am trying to write a small client using the socket API to connect
to a pub/sub system and when the messages coming back increases.. I
start to loose the messages in the player...

Any help would be appreicated...

Flexcoders Mailing List
Search Archives: 
Yahoo! Groups Links

<*> To visit your group on the web, go to:

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[hidden email]
    mailto:[hidden email]

<*> To unsubscribe from this group, send an email to:
    [hidden email]

<*> Your use of Yahoo! Groups is subject to:

Reply | Threaded
Open this post in threaded view

Re: Socket buffers


as far as i know the progress event fires as soon as the sockets detect data
being in the socket. You could read the data into a byte array if 1 progress
cycle did not contain a complete message for example. Typically however the
sending side should use a buffer and send it as soon as it has a complete
message, then in progress event you can just read out the complete message.
I dont have experience with data being lost.

Greetz Erik