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.

udp socket 超时问题

Other Parts Discussed in Thread: CC3200

板子是cc3200,现在列出我的代码!

timeval lNonBlocking;
lNonBlocking.tv_sec = 0;
lNonBlocking.tv_usec = 0;

#if 1
iStatus = sl_SetSockOpt(iSockID, SL_SOL_SOCKET, SL_SO_RCVTIMEO,&lNonBlocking, sizeof(lNonBlocking));
if( iStatus < 0 )
{
//error
sl_Close(iSockID);
//ASSERT_ON_ERROR(SOCKET_OPT_ERROR);
}
#endif

设置后了,当到达超时时间后,程序还是卡在那!