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.

CC3220SF 当做Tcp client时如何判断Server断开?

Other Parts Discussed in Thread: CC3220SF

您好,我使用CC3220SF与上位机进行TCP通讯,此时上位机做为TCP的Server端,CC3220sf作为Client端,但我发现,如果CC3220SF只做TCP的recv的话,当上位机TCP断开(意外断开-直接关闭软件)后CC3220SF无法检测到Server断开,导致下次上位机无法连接上CC3220SF。为此我查阅文档增加了Socketd KeepAlivetime的选项,但是丝毫没有效果。status = sl_SetSockOpt(sockId, SL_SOL_SOCKET, SL_SO_KEEPALIVETIME,( _u8*) &TimeOut, sizeof(TimeOut));请问如何解决上述问题?