Is there a way to determine how many packets where received while using recv() with Winsock? I am looking for a solution to implement at the client, without special requirements on the server side (which I have no control of)
Asked
Active
Viewed 183 times
0
-
Possible duplicate of http://stackoverflow.com/questions/586799/count-the-number-of-packets-sent-to-a-server-from-a-client. As answers to that question point out, it depends on what you mean by a packet. – mdm Jun 14 '11 at 20:29
-
thanks for pointing it out, not sure why did not come up on my original search – wnsockbegnr Jun 14 '11 at 20:56
-
sadly that did not answer it either. I cannot use any of those workarounds, would require I control both server and client - i only control client. – wnsockbegnr Jun 14 '11 at 20:59
1 Answers
0
You'd need to packet-sniff using something like the WinPCap. Then you could correlate the packets captured with the socket used.

Pete
- 6,585
- 5
- 43
- 69
-
i was hopping there was a better way... connections can be reused and correlation could become iffy – wnsockbegnr Jun 14 '11 at 20:48