Advertisement

Is sendto() blocking?

Started by May 21, 2005 02:39 PM
0 comments, last by Anon Mike 19 years, 9 months ago
All is in the title If yes, how it is long? I believe that in UDP, the datagram is sent whatever happens in the network. So, sendto may return immediately, no?
Instead of trying to guess if a particular operation is blocking or not you should just switch the socket to non-blocking mode. ioctlsocket with FIONBIO set to non-zero should do the trick (just ioctl on *nix).
-Mike

This topic is closed to new replies.

Advertisement