Wow am I stupid or what?

socket.readBytes(bufferIn, 0, socket.bytesAvailable);

should be

socket.readBytes(bufferIn, bufferIn.length);

This code has been working for months up until now because I never got any large enough packets for them to be broken up to expose this stupid bug of mine.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to