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.