0

Could I use the WSAIoctl() function provided by the Windows SDK to control the packets send speed of a UDP socket?

I need to control the packets sending speed of an UDP socket at the accuracy of 400KB/S. I am running program at Windows 7 System.

I have tried to use the Sleep() API provided by Windows SDK to control the number of UDP packets sended in a little time slice. But I have also found that when my program called Sleep(1), the thread in which the Sleep(1) function always slept more than 1 ms. So this solution cannot control the UDP packets' sending speed at the level of accuracy which I need.

My mentor has told me that I could try to use the WSAIoctl() API so as to set the SIO_SET_QOS option in order to solve this problem. But I cannot find enough information about SIO_SET_QOS.

user207421
  • 305,947
  • 44
  • 307
  • 483

0 Answers0