Click here to Skip to main content
15,886,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

I have a C++ class that sends UDP packets using Winsock2 (kind of a wrapper).
I noticed that sending packets smaller than 1KB takes 0ms delay (measured by GetTickCount()). When the size is over 1KB the timing becomes almost 3seconds!!!

Does anyone have any idea what can cause this behavior?

Some info about the connection: I make a UDP socket and bind() it to a local address (IP, port). When sending, I use sendto() to send to a specific remote (IP, port) address.

Thanks.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900