<?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: connect() error in user guide in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/connect-error-in-user-guide/m-p/489054#M15933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Carlos.&lt;/P&gt;&lt;P&gt;i use a similar workaround.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2016 08:25:14 GMT</pubDate>
    <dc:creator>emanueletrapani</dc:creator>
    <dc:date>2016-01-21T08:25:14Z</dc:date>
    <item>
      <title>connect() error in user guide</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/connect-error-in-user-guide/m-p/489052#M15931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;hi, i work on mqx 4.2, CW 10.6 and frdmk64f.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;in the RTCS user guide, connect() function description, i read that : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"When used with stream sockets, the function fails if the remote endpoint:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;• Is unreachable, which causes the connection timeout to expire."&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;when i use connect() function if the remote endpoint is unreachable, the function return when the connect timeout expires but return RTCS_OK. so it seem that the function not fails. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;it is correct? how can i understand that the connect fail if the socket are not connect and the function return RTCS_OK?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;ps: &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;it return RTCS_OK also if my application is just one task with just one socket that try cyclically to connect to an inexistent server.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 08:34:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/connect-error-in-user-guide/m-p/489052#M15931</guid>
      <dc:creator>emanueletrapani</dc:creator>
      <dc:date>2016-01-14T08:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: connect() error in user guide</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/connect-error-in-user-guide/m-p/489053#M15932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Emanuale,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right, I was able to reproduce this and it is not the expected behavior. I created a report and submitted to MQX development team. Report number is &lt;A class="issue-link" data-issue-key="MQX-5682" href="http://sw-jira.freescale.net/browse/MQX-5682" rel="176664"&gt;MQX-5682&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;meanwhile you can workaround this by activating a watchdog timer that expires before connect timeout. If the connect function is still trying to connect before a considerable time you may kill the task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 18:40:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/connect-error-in-user-guide/m-p/489053#M15932</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2016-01-20T18:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: connect() error in user guide</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/connect-error-in-user-guide/m-p/489054#M15933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Carlos.&lt;/P&gt;&lt;P&gt;i use a similar workaround.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 08:25:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/connect-error-in-user-guide/m-p/489054#M15933</guid>
      <dc:creator>emanueletrapani</dc:creator>
      <dc:date>2016-01-21T08:25:14Z</dc:date>
    </item>
  </channel>
</rss>

