Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does the NDK have a hard limitation on the number of sockets?

hard limitation ndk Sockets
0
Posted

Does the NDK have a hard limitation on the number of sockets?

0

No, the NDK does not have a hard limit on the number of sockets. However, memory is the main constraint when designing an application. To allow deterministic behavior, sockets allocate and deallocate fixed-size buffers dynamically from the packet buffer manager (PBM). The PBM has a limited size that depends on the number of buffers configured in the file . That, in turn depends on the amount of heap memory available. Therefore, if the application has a fairly large amount of sockets open and communicating at a given time, any attempts to communicate may return the error code 55 (ENOBUFS or No buffer space available). The solution is to increase the buffer manager. For additional details on how to do this please see section 5.3 of NDK User’s Guide (spru523). You will have to rebuild using the script provided with NDK. Lastly, the error above may also appear due to scheduler starvation caused by real-time constraints. Please see question 13 above.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123