VB6 - Proper sending/receiving data with Winsock (tutorial & code)
I think this is information every Winsock or client/server developer should know. It is something I wish I had figured out soon after I first started. While it has been common knowledge to me for some time now (and for many others), without it, your client/server programs will be very fragile and bugs can pop up at any time.
The tutorial is meant to be as short and straightforward as possible. I wrote this in about an hour or maybe a little more.
Please let me know if it's helped, if you have any questions, if there's a bug, or anything. And read the tutorial before looking at the code.
This article explains (and gives code for) how to handle 2 or more packets arriving at the same time, or "together". But unlike other tutorials, it also explains another critical problem, which is one packet getting split in the middle. So I think even if you know most (or possibly all) of this stuff it is still useful information.
Last edited by DigiRev; Aug 30th, 2007 at 03:06 AM.