请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:MSP432E401Y 您好!
以下示例代码中使用的套接字 API 是否支持非阻塞调用? 如果兼容、请告知我是否有样品或说明材料。
套接字 API 用于以下文件中定义的 send 和 recv 等函数。
- simplelink_msp432e4_sdk_4_20_00_12\source\ti\net\bdstock.c
谢谢。
Eevee
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 是否支持非阻塞调用? 如果兼容、请告知我是否有样品或说明材料。
套接字 API 用于以下文件中定义的 send 和 recv 等函数。
- simplelink_msp432e4_sdk_4_20_00_12\source\ti\net\bdstock.c
谢谢。
Eevee
您好!
NDK 提供类似 BSD 的套接字编程。 对于非阻塞,您需要使用类似 select()的方法。 请参阅以下文章。
https://jameshfisher.com/2017/04/05/set_socket_nonblocking/
https://www.codeproject.com/Questions/457481/How-to-make-recv-call-non-blocking-and-make-it-to