Basic TCP rules says that you are sending an octet stream.

All socket APIs are optimized for bulk access to avoid silly performance
issues due to lots of function calls (and possible mode switches).

This means that you MAY get more than one object in one go and that you
MAY get only a part of the object(s) at the ends of the buffer.

You need to separate data manually. You have three strategies:
* Fixed size (easy, not flexible)
* Terminator (slightly tricky with buffers, flexible, possible escaping
issues, slight overhead)
* Transmitted size (easy with buffers, flexible, slight overhead)
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to