<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: fnet - socket: How can I detect when the client has disconnected a TCP-connection? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/fnet-socket-How-can-I-detect-when-the-client-has-disconnected-a/m-p/425528#M24512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;has been answered in a different thread. Thanx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer is: use fnet_error_get()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 14:07:00 GMT</pubDate>
    <dc:creator>martinpi</dc:creator>
    <dc:date>2015-04-21T14:07:00Z</dc:date>
    <item>
      <title>fnet - socket: How can I detect when the client has disconnected a TCP-connection?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/fnet-socket-How-can-I-detect-when-the-client-has-disconnected-a/m-p/425527#M24511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the fnet-stack.&lt;/P&gt;&lt;P&gt;I create a socket with socket(), bind() and accept().&lt;/P&gt;&lt;P&gt;The Client connects, I use the socket that is returned by accept()&lt;/P&gt;&lt;P&gt;and we both can send and receive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the Client disconnects, I see a FIN / FIN ACK / ACK sequence in Wireshark,&lt;/P&gt;&lt;P&gt;but how does my application know that the connection is closed (or timed out)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The socket Status returned by getsockopt() is still 2 = SS_CONNECTED,&lt;/P&gt;&lt;P&gt;calls to subsequent sendto() do not yield an error&lt;/P&gt;&lt;P&gt;and the Information is sent as if the connection were still open.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, how do I detect when the client has disconnected a TCP-connection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings, Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 16:33:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/fnet-socket-How-can-I-detect-when-the-client-has-disconnected-a/m-p/425527#M24511</guid>
      <dc:creator>martinpi</dc:creator>
      <dc:date>2015-04-20T16:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: fnet - socket: How can I detect when the client has disconnected a TCP-connection?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/fnet-socket-How-can-I-detect-when-the-client-has-disconnected-a/m-p/425528#M24512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;has been answered in a different thread. Thanx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer is: use fnet_error_get()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 14:07:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/fnet-socket-How-can-I-detect-when-the-client-has-disconnected-a/m-p/425528#M24512</guid>
      <dc:creator>martinpi</dc:creator>
      <dc:date>2015-04-21T14:07:00Z</dc:date>
    </item>
  </channel>
</rss>

