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.

[参考译文] MSP432E401Y:检测丢失的套接字连接

Guru**** 2539500 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1044379/msp432e401y-detecting-lost-socket-connection

器件型号:MSP432E401Y

我有一个与 Windows 程序上的端口具有 TCP 套接字连接的程序。 如果该程序已关闭、我可以在 MSP432程序中检测到这一点、但如果程序崩溃、我无法检测到这一点。 套接字仍处于打开状态、唯一检测缺少连接的方法是尝试向套接字写入内容。

是否有另一种方法可以检测套接字上的连接丢失。

我们使用 CCS 10.2和 SimpleLink MSP432E4 SDK 4.20.0.12编写 C++代码