Advertisement

Winsock2 - Non Blocking Sockets

Started by November 05, 2003 07:36 PM
1 comment, last by Thorin_nz 21 years, 3 months ago
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
ioctlsocket()
Advertisement
wow, thanks, great help

This topic is closed to new replies.

Advertisement