I’m sending through a socket from java to flex client some data and the flex side can’t seem to handle it right.
In the java i’m looping over 8 objects and for each object I create a long string 1:lsls:2:3:justexample then the java does writeToSocket(“1:lsls:2:3:justexample”) for every iteration of the loop.
But in the client side, it seems that only 2 out of the 8 arrived. what can be the problem?
Thanks.
I’m sending through a socket from java to flex client some data and the
Share
If your client does not read the data fast enough it is possible that the connection is prematurely reset by the Java side – if you
close()the socket after sending that is. You could try setSoLinger() to allow more time for transmission of queued data before the connection is actually closed.