Friday 15 May 2015

c++ - How to make 'send' as non-blocking in winsock -


I am creating a program that sends UDP packets to the server at a fixed interval, something like this: < Send Send Send a blocked call (for example, when is defined interval <20+ codes, and to call) send is & Gt; 20ms), do you go How can I change send to a nonblocking operation?

the API ioctlsocket can do this. You can use it as below. But why do not you use I / O models in winsock?

ioctlsocket (HSOK, FIBO, (unsigned long *) & amp; UL;)

No comments:

Post a Comment