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:关闭 TCP/IP 套接字

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/993124/msp432e401y-closure-of-tcp-ip-sockets

器件型号:MSP432E401Y

Resource Explorer 附带用于与 TCP/IP 套接字通信的 tcpecho 示例。

这对我来说非常好。 但是、我想知道是否有关闭 TCP/IP 套接字的"最佳实践"解决方案?

欢迎提出任何想法。

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

    您好!

    我找不到任何有关这方面的正式指南。 但是  ,TI Resource Explorer 中的 tcpecho 示例说明提到 了 tcpWorker()处理关闭 服务器套接字、释放 TCP 缓冲存储器和退出任务。  在线可能会有更多有关此流程的通用文档。