I am using ndk2.0 and 6747 develop a udp application, i send a udp packet who's length less than 10k is sucessful,but when i send packet who's length larger than 10k ,socket api "sendto" return -1,and fdError() return 55.
is there some setup in ndk or socket?how i can send packet larger than 10k?
Hi feng yantsing,
The message you are seeing means that the NDK is trying to allocate the packet but is failing because it is running out of memory. It means that either the PBM (packet buffer manager) has run out of available packets from its pool, or that that NDK's memory manager does not have any blocks available in its pool.
Can you try the following?
Let me know if you see build errors. By copying that file into your project and rebuilding there, I'm hoping to avoid you having to rebuild the NDK stack (i.e. it's a shortcut).
You may also need to increase the available memory pool. This is done in a similar way in the file mem.c but by changing the value of RAW_PAGE_COUNT from 16 to be a bigger number (try 20 first and work up from there).
But again, if you get build errors (mulitply defined symbol errors) from copying these files into your project, then please let me know and we'll try another way.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.