Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++/CLI Windows udp
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 19-May-12 19:58pm
amkom162

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

  Print Answers RSS
0 Dnyaneshwar@Pune 719
1 Sergey Alexandrovich Kryukov 300
2 Peter Leow 280
3 CPallini 275
4 CHill60 235
0 Sergey Alexandrovich Kryukov 9,008
1 OriginalGriff 6,771
2 Peter Leow 4,262
3 Zoltán Zörgő 3,769
4 Richard MacCutchan 2,623


Advertise | Privacy | Mobile
Web02 | 2.8.150128.1 | Last Updated 20 May 2012
Copyright © CodeProject, 1999-2015
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