Posted Mar 28, 2006 18:48 UTC (Tue) by guinan
In reply to: OT
Parent article: The Grumpy Editor's guide to RSS aggregators
You have to keep track of the number of bytes returned and make multiple attempts. When things go through network transports (even localhost) you'll get things in chunks corresponding to 1 or more packets.
I usually write a wrapper function around recv() to keep the calling code simple.
to post comments)