How can I check if all the data has been already received after I use send? I mean, I want to know when the send buffer "empties"...
This is a discussion on Winsock. How to check if all the data was sent... within the C++ Programming forums, part of the General Programming Boards category; How can I check if all the data has been already received after I use send? I mean, I want ...
How can I check if all the data has been already received after I use send? I mean, I want to know when the send buffer "empties"...
Me thinks this should be in the windows api forumGood luck though, im sure someone there can help you out
"Anyone can aspire to greatness if they try hard enough."
- Me
Look up TCP/IP protocol. It will by default insure that every package sent is delivered. If it can't be then it attempts to resend. Where as UDP doesn't resend packets which is commonly used in games. If you really wanted you could use things like checksum.
Last edited by cerin; 06-04-2007 at 03:31 AM.
My computer is awesome.
I had forgotten I asked this, lol. I figured it out soon after I posted. There is a funcion called select() that does the job wonderfully.