6 Replies Latest reply on Jan 11, 2017 6:17 AM by AxLi_1746341

    How to have tcp server socket detect client gone

      Given the snip/tcp_server example, how can we learn that the client has gone.

       

      For example a phone client connects to the server and then the WLAN link is shut off on the phone.

       

      The socket continues to wait in wiced_tcp_receive (or timeout if set) but I can find no way to learn that the client is gone.

       

      If the client does a clean disconnect, the server loops back around to wiced_tcp_accept.

       

      How do I make it do this when the WLAN link is shutoff (and similar unplanned disconnects from client)?

       

      Using 3.0.1 or 3.1.0