Click here to Skip to main content
12,454,104 members (56,117 online)
Rate this:
Please Sign up or sign in to vote.
See more: C++/CLI Windows udp

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 | Mobile
Web02 | 2.8.160826.1 | Last Updated 20 May 2012
Copyright © CodeProject, 1999-2016
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