Skip to main content
Participant
January 10, 2011
Question

TCP signals

  • January 10, 2011
  • 1 reply
  • 690 views

I am working on a project involving two actionscript clients and a java server. XML messages are sent from the clients to the server (and vice versa) via the XMLSocket class. The problem I am running into is that when messages are sent too quickly to one of the clients the client seems to lose track of them (it will not respond to them at all). The wierd part is when subsequent messages come in, the client will respond to old messages instead. It's as if the XML messages are getting queued up somewhere, but the signal that prompts the program to deal with them gets lost.

How can I fix this?

This topic has been closed for replies.

1 reply

funkysoul
Inspiring
January 10, 2011

as far as I know XMLSockets are kind of latent, have you already tried using DatagramSockets? They are blazing fast. Don't know if it fits your needs though.

Participant
January 31, 2011

When I try to run my program with the DatagramSocket, I get the error flash.net::DatagramSocket could not be found. I don't understand, because my other program using flash.net::Socket works fine (barring the failure I described earlier). Do I have to download the source for DatagramSocket from somewhere and if so, where?

kglad
Community Expert
Community Expert
February 1, 2011

the datagramsocket class is air2 only.