title: recvfrom() error 10035 using non-blocking sockets
body: <p>I am using ioctlsocket() function to make my socket non-blocking but when I call recvfrom(), I get the error 10035 (<code>WSAEWOULDBLOCK</code>).</p>
  
  <pre><code>u_long mode = 1;
  ioctlsocket(newSocketIdentifier, FIONBIO, &amp;mode);
  
  while(1)
     {
        if((recv_len = recvfrom(newSocketIdentifier, receiveBuffer, sizeof(receiveBuffer), 0, (struct sockaddr *) &amp;clientSocket, &amp;clientSocketLength)) == SOCKET_ERROR)
        {
           char err[128];
           itoa(WSAGetLastError(),err,10);
           MessageBox( NULL,"Could not Receive Data",err,MB_ICONINFORMATION);
           BREAK;
        }
     }
  </code></pre>
  
  <p>Can anybody explain why this happens? :(</p>