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.

[参考译文] EK-TM4C1294XL:在 TM4C129中处理 LWIP 中的非活动客户端

Guru**** 2484835 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/733994/ek-tm4c1294xl-handle-inactive-client-in-lwip-in-tm4c129

器件型号:EK-TM4C1294XL

大家好、社区

我正在使用 tm4c129套件上的 LWIP。 我正在使用包含 http_echo 代码的 TIvaware 工作区、我已从该链接 https://github.com/dreamcat4/lwip/tree/master/contrib/apps/tcpecho 添加了 TCP echo 文件我想添加一项功能、即如果任何客户端在特定时间内处于非活动状态、则此连接应自动中止或关闭。 如何将此功能添加到代码中?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!
    我想您可以参考此链接以及有关如何关闭连接的示例代码。 您要尝试创建一个 tcp_poll 回调、这样、如果轮询间隔超时、您就可以关闭连接。

    github.com/.../echo.c