<?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中的主题 Re: Properly coded multi client TCP server (threads) ?</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Properly-coded-multi-client-TCP-server-threads/m-p/227684#M6188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bulek,&lt;/P&gt;&lt;P&gt;By default the MQX examples using Ethernet (MQX4.0/demo/web_hvac or the MQX4.0/rtcs/examples/httpsrv) can have more than one client access them.&lt;/P&gt;&lt;P&gt;The default setting for the RTCSCFG_TCP_MAX_CONNECTIONS is 0 (which means there is no limit).&lt;/P&gt;&lt;P&gt;If you want to change this #define setting do it in the user_config.h header and recompile the RTOS components.&lt;/P&gt;&lt;P&gt;Obviously an infinite number of connections cannot occur.&amp;nbsp; Just realize each connection used up a certain amount of RAM and sooner or later you will run out.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2013 21:53:42 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2013-03-18T21:53:42Z</dc:date>
    <item>
      <title>Properly coded multi client TCP server (threads) ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Properly-coded-multi-client-TCP-server-threads/m-p/227683#M6187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to implement TCP server that would allow more than one client to connect on TCP socket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First question is how server figures out that client has disconnected ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second is how to write robust TCP server that would allow connection of more than one client.&lt;/P&gt;&lt;P&gt;Are threads optimal solution? What to put in those threads?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd kindly ask if anyone is also willing to post some code examples...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bulek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 23:07:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Properly-coded-multi-client-TCP-server-threads/m-p/227683#M6187</guid>
      <dc:creator>robroz</dc:creator>
      <dc:date>2013-03-15T23:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Properly coded multi client TCP server (threads) ?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Properly-coded-multi-client-TCP-server-threads/m-p/227684#M6188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bulek,&lt;/P&gt;&lt;P&gt;By default the MQX examples using Ethernet (MQX4.0/demo/web_hvac or the MQX4.0/rtcs/examples/httpsrv) can have more than one client access them.&lt;/P&gt;&lt;P&gt;The default setting for the RTCSCFG_TCP_MAX_CONNECTIONS is 0 (which means there is no limit).&lt;/P&gt;&lt;P&gt;If you want to change this #define setting do it in the user_config.h header and recompile the RTOS components.&lt;/P&gt;&lt;P&gt;Obviously an infinite number of connections cannot occur.&amp;nbsp; Just realize each connection used up a certain amount of RAM and sooner or later you will run out.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 21:53:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Properly-coded-multi-client-TCP-server-threads/m-p/227684#M6188</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2013-03-18T21:53:42Z</dc:date>
    </item>
  </channel>
</rss>

