Winsock2 - Non Blocking Sockets
How can I stop winsock2 from blocking, when I call recvfrom on a UDP socket?
It says on MSDN that if the socket is set as non-blocking and there is no data to be received, then SOCKET_ERROR is returned and the error code set to WSAEWOULDBLOCK.
I think setsockopt() is used to set it as non-blocking but I cant find the option to set it as blocking or non blocking.
Can anyone help?
Thanks
Steve
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement