This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3200: sl_RecvFrom() returns error code -100

Part Number: CC3200

hi ,

In my project i create a udp socket as a server and i use the socket to receive packets form PC. I found that if the PC sended packets every 20ms then after received about 200 packets the function sl_RecvFrom returned -100.But if the PC sended packets every 50ms or 100ms there was not that problem. By the way i set the socket non-blocking. and below  is my code, can you tell me some possible reason causing that problem, thanks very much!

and more information: I use the latest sdk and service pack.

// no listen or accept is required as UDP is connectionless protocol
recBytes = sl_RecvFrom(udpSockID, g_cBsdBuf, BUF_SIZE, 0,\
( SlSockAddr_t *)&fromAddr, (SlSocklen_t*)&fromAddrSize );

if( recBytes < 0 )
{
  if(recBytes != SL_EAGAIN)
  {
    UART_PRINT("r = %d\r\n",recBytes);
    //while(1);
  }
}