Posted Mar 29, 2006 20:24 UTC (Wed) by guinan
In reply to: OT
Parent article: The Grumpy Editor's guide to RSS aggregators
I don't mind sharing, but are you writing in C, Python, other?
Do you know ahead of time how many bytes you want to receive?
If the length is embedded in the data stream, you might as well recv() as much as you can, to avoid extra system calls. But if there's another message behind the first one, you might end up reading into that, in which case you should keep ahold of the "remainder" for the next call.
Email me firstname.lastname@example.org if you want to take it offline.
to post comments)