VB6 Winsock bug
I am using a Winsock object to send a receive messages using UDP protocol. It seems like sometimes the same message arrives or being sent twice, I read an article on Microsoft's web site that says that is a bug in DataArrival event that causes it to fire twice but it does not offer a solution to the problem, Any idea how to resolve that problem?
[352 byte] By [
atuvy] at [2007-11-20 11:31:06]

# 3 Re: VB6 Winsock bug
Yes, DataArrival may occur multiple times for a large transfer, and you get no indication of the total size coming at you. I think the packet size is basically whatever is used by the network. I seem to remember sending a "header" that indicated the total transfer size, so the receiving end could process the stream appropriately.