<?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>RL-TCPnet - receive buffer length</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/28991/rl-tcpnet---receive-buffer-length</link><description> 
while receiving over UDP from PC to ARM, in the udp_callback
function how to determine the total number of bytes received in the
receive buffer (the parameter U8 *buf is the pointer to the memory
where the data is received)? 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: RL-TCPnet - receive buffer length</title><link>https://community.arm.com/thread/60500?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2012 05:19:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7d83ecb9-c49f-4bd1-8b68-d3c55b490c5d</guid><dc:creator>IB Shy</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;...how to determine the total number of bytes received in the
receive buffer...&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;pre&gt;
       .
       .
       .
       U8* buf,        /* Pointer to buffer containing the received data. */
       U16 len ));     /* Number of bytes in the received data packet. */
&lt;/pre&gt;

&lt;p&gt;
Taken from &lt;a href="http://www.keil.com/support/man/docs/rlarm/rlarm_udp_get_socket.htm"&gt;
&lt;a href="http://www.keil.com/support/man/docs/rlarm/rlarm_udp_get_socket.htm"&gt;www.keil.com/.../rlarm_udp_get_socket.htm&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>