On Jun 15, 2011, at 8:01 PM, Tony Romano wrote:

> 2. You need to know how many bytes any particular packet contains.
> Usually there is some operation code pair with the number of byte to
> expect for the operation.

That's certainly the way I prefer, but it is also possible to use a marker at 
the end of the data, and collect until you hit the marker.

-- 
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to