No I / O lock for Android

I'm currently trying to evaluate whether it is possible to implement a project for Android. One of the main problems I see is that since this is a P2P client, we would have to support a significant number of connections at startup. Now connections do not transmit large amounts of data, it is rather a messaging system, so having a stream for each connection creates unnecessary overhead if we read one message each of 64 bytes each time.

So I was wondering if there is support for blocking IO, such as select () or poll () on Linux.

Any suggestion?

+3
source share

Source: https://habr.com/ru/post/1777217/


All Articles