请问 TI工程师 我在在调用UDP 的sl_RecvFrom的时候,一直要等到有数据过来才能执行这个函数, 怎么样采用其他方式接收吗?比如采用中断方式接收 或者是 设置成 非阻塞
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.
有API可以设置成nonblocking, 请参考API:
\par
<b> SL_SO_NONBLOCKING: </b>
\code
SlSockNonblocking_t enableOption;
enableOption.NonblockingEnabled = 1;
sl_SetSockOpt(SockID,SL_SOL_SOCKET,SL_SO_NONBLOCKING, (_u8 *)&enableOption,sizeof(enableOption)); // Enable/disable nonblocking mode
\endcode