Click here to Skip to main content
13,141,561 members (26,375 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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.

Posted 19-May-12 18:58pm

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170915.1 | Last Updated 20 May 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100