<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>memory allocation of TCP-stack</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/22363/memory-allocation-of-tcp-stack</link><description> 
Hello all, 

 
I&amp;#39;m using the MDK-ARM 3.11 and RTL-ARM 3.10 in combination with a
MCB2300 Demo board. As a part of my application I want to transfer
some files from the embedded board to a computer. Therefore I have
written embedded client that sends</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: memory allocation of TCP-stack</title><link>https://community.arm.com/thread/75575?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2007 04:02:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cba71e16-17fd-4375-867a-4f5cfae4d095</guid><dc:creator>Werner Kuhn</dc:creator><description>&lt;p&gt;&lt;p&gt;
You are right, it&amp;#39;s working now.&lt;/p&gt;

&lt;p&gt;
Thank you very much!&lt;/p&gt;

&lt;p&gt;
Rainer&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: memory allocation of TCP-stack</title><link>https://community.arm.com/thread/48723?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2007 02:58:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a2848f9c-42cf-4392-836b-e5c3240f676e</guid><dc:creator>Franc  Urbanc</dc:creator><description>&lt;p&gt;&lt;p&gt;
1. no, &lt;i&gt;tcp_release_socket()&lt;/i&gt; does not automatically release
dynamic memory allocated for TCP socket.&lt;/p&gt;

&lt;p&gt;
2. to release a memory, call &lt;i&gt;tcp_send(socket, buf,
&lt;b&gt;0&lt;/b&gt;)&lt;/i&gt;.&lt;/p&gt;

&lt;p&gt;
When &lt;i&gt;dlen&lt;/i&gt; is 0, the packet is not transmitted, the memory
is released and function returns. This call will of course print an
error message on debug serial port if you are using a debug version
of TCPnet library.&lt;/p&gt;

&lt;p&gt;
Franc&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>