<?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: RTCS_create(), where is RTCS_Destroy()?</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-create-where-is-RTCS-Destroy/m-p/171424#M1968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ipcfg_task_destroy() only destroys the task created by ipcfg_task_create() which only periodically checks the line status and rebinds ip address if necessary. This is not what you want in your example above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exit handler should at least shutdown/free up sockets created by the task.&lt;/P&gt;&lt;P&gt;It can optionally unbind ip address if not used anywhere else.&lt;/P&gt;&lt;P&gt;RTCS itself continues to work in separate tasks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PetrM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Feb 2010 21:56:30 GMT</pubDate>
    <dc:creator>PetrM</dc:creator>
    <dc:date>2010-02-01T21:56:30Z</dc:date>
    <item>
      <title>RTCS_create(), where is RTCS_Destroy()?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-create-where-is-RTCS-Destroy/m-p/171423#M1967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do I just call ipcfg_task_destroy(); from my task exit handler and that will look after all recouces for a simple UDP socket connection setup something like this (in short summary):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error = RTCS_create();&lt;/P&gt;&lt;P&gt;error = ipcfg_init_device(IPCFG_default_enet_device, IPCFG_default_enet_address);&lt;/P&gt;&lt;P&gt;error = ipcfg_bind_dhcp_wait(0, TRUE, &amp;amp;ip_data);&lt;/P&gt;&lt;P&gt;error = ipcfg_get_ip(IPCFG_default_enet_device, &amp;amp;ip_data));&lt;/P&gt;&lt;P&gt;sock = socket(PF_INET, SOCK_DGRAM, 0);&lt;/P&gt;&lt;P&gt;error = bind(sock, &amp;amp;local_sin, sizeof(local_sin));&lt;/P&gt;&lt;P&gt;//TX/RX&lt;/P&gt;&lt;P&gt;for(;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;{&lt;/P&gt;&lt;P&gt;count = sendto(sock, my_TXbuffer, i, 0, &amp;amp;remote_sin, sizeof(sockaddr_in));&lt;/P&gt;&lt;P&gt;count = recvfrom(sock, my_RXbuffer, 256, 0, &amp;amp;remote_sin, &amp;amp;remote_len);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, what recources do I have to free up in my exit handler? RTCS? Sockets? Bind?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by CarlFST60L on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2010-01-31&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;04:23 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2010 12:19:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-create-where-is-RTCS-Destroy/m-p/171423#M1967</guid>
      <dc:creator>CarlFST60L</dc:creator>
      <dc:date>2010-01-31T12:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS_create(), where is RTCS_Destroy()?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-create-where-is-RTCS-Destroy/m-p/171424#M1968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ipcfg_task_destroy() only destroys the task created by ipcfg_task_create() which only periodically checks the line status and rebinds ip address if necessary. This is not what you want in your example above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exit handler should at least shutdown/free up sockets created by the task.&lt;/P&gt;&lt;P&gt;It can optionally unbind ip address if not used anywhere else.&lt;/P&gt;&lt;P&gt;RTCS itself continues to work in separate tasks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PetrM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 21:56:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-create-where-is-RTCS-Destroy/m-p/171424#M1968</guid>
      <dc:creator>PetrM</dc:creator>
      <dc:date>2010-02-01T21:56:30Z</dc:date>
    </item>
  </channel>
</rss>

