I am programming with sockets in Linux. I have a blocking socket and I want the following: When I call recv(), I want to know how many bytes of data there is in total, then I want to construct a buffer to hold that amount, and call recv() again with that buffer to get all the data that is waiting in one call. How do I do that?
Thanks
David
Start Free Trial