<?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>MQX Software SolutionsのトピックBehavior of RTCS &amp;quot;OPT_SEND_TIMEOUT&amp;quot;</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Behavior-of-RTCS-quot-OPT-SEND-TIMEOUT-quot/m-p/472114#M15622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm setting OPT_SEND_TIMEOUT on a blocking socket. If the receiving application or network goes down when sending data, I'd expect to either see an RTCS_ERROR return or maybe a count of the number of bytes accepted. What I see in either of those two cases is no return from send(). If I close the receiving app, which shuts down the receiving socket before exiting, RTCS reports an error as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug, awkward/incorrect English in the manual description, or non-standard behavior by RTCS? The OPT_SEND_TIMEOUT description in the RTCS user manual states:&lt;/P&gt;&lt;P&gt;• Zero (RTCS waits indefinitely for outgoing data during a call to send()).&lt;/P&gt;&lt;P&gt;• Non-zero (RTCS waits for this number of milliseconds for incoming data during a call to send()).&lt;/P&gt;&lt;P&gt;"Waits indefinitely for outgoing data" could mean "wait until outgoing data is buffered," but waiting for "incoming data" does not seem to make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The work-around is to set the MSG_DONTWAIT flag and require the sending application to deal with partial send() results, but OPT_SEND_TIMEOUT should be doing that work on behalf of the application code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 19:21:58 GMT</pubDate>
    <dc:creator>fcw</dc:creator>
    <dc:date>2016-05-13T19:21:58Z</dc:date>
    <item>
      <title>Behavior of RTCS "OPT_SEND_TIMEOUT"</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Behavior-of-RTCS-quot-OPT-SEND-TIMEOUT-quot/m-p/472114#M15622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm setting OPT_SEND_TIMEOUT on a blocking socket. If the receiving application or network goes down when sending data, I'd expect to either see an RTCS_ERROR return or maybe a count of the number of bytes accepted. What I see in either of those two cases is no return from send(). If I close the receiving app, which shuts down the receiving socket before exiting, RTCS reports an error as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug, awkward/incorrect English in the manual description, or non-standard behavior by RTCS? The OPT_SEND_TIMEOUT description in the RTCS user manual states:&lt;/P&gt;&lt;P&gt;• Zero (RTCS waits indefinitely for outgoing data during a call to send()).&lt;/P&gt;&lt;P&gt;• Non-zero (RTCS waits for this number of milliseconds for incoming data during a call to send()).&lt;/P&gt;&lt;P&gt;"Waits indefinitely for outgoing data" could mean "wait until outgoing data is buffered," but waiting for "incoming data" does not seem to make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The work-around is to set the MSG_DONTWAIT flag and require the sending application to deal with partial send() results, but OPT_SEND_TIMEOUT should be doing that work on behalf of the application code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 19:21:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Behavior-of-RTCS-quot-OPT-SEND-TIMEOUT-quot/m-p/472114#M15622</guid>
      <dc:creator>fcw</dc:creator>
      <dc:date>2016-05-13T19:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Behavior of RTCS "OPT_SEND_TIMEOUT"</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Behavior-of-RTCS-quot-OPT-SEND-TIMEOUT-quot/m-p/472115#M15623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RTCS was changed in the different MQX releases. Could please let me know which MQX version are you using??&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt; Sol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 00:06:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Behavior-of-RTCS-quot-OPT-SEND-TIMEOUT-quot/m-p/472115#M15623</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2016-05-24T00:06:21Z</dc:date>
    </item>
  </channel>
</rss>

