--- Adarsh Bhat <big_standards@...
> This is in regard with sockets programming on
> Linux. If I do
> a recv() call, am I assured that I will get the
> entire data on one
> call? i.e.,
> say I execute recv(..,10000 bytes)
> Will the recv() call return only after all the 10000
> bytes have been
> I've heard that it's not so and that it may return
> after reading an
> arbitrary number of bytes. How can this be handled?
> Should I loop
> back until I've read enough?
Right, refer to the functions readn() and writen()
in Richard Steven's UNIX network programming book.
Also refer to the man pages for read and write.
Kiran Kumar Immidi
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).