Doing anything but copying the data from the event to your own bytearray
buffer object is a disaster waiting to happen.
TCP is a stream based protocol, you can get chunks of any length each
time the event is reviced. Assume that the chunks are random length and
piece them together in a buffer of your own. Then, once you know that
you have a full logical unit, process the data.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders