3 ms·
That method just instructs the OS to send keepalive packets on a system thread. It saves some CPU power by letting your process sleep, but still requires wakin
by tjohns 7y ago
That method just instructs the OS to send keepalive packets on a system thread.
It saves some CPU power by letting your process sleep, but still requires waking the cell radio up periodically.
The implementation can be found here: https://github.com/aosp-mirror/platform_frameworks_base/blob/master/core/java/android/net/ConnectivityManager.java https://github.com/aosp-mirror/platform_frameworks_base/blob...
- vinay_ys 7y agoThat's right. And it should work as advertised in the documentation. Anyway, I was responding to the "cell networks don't allow" part of your comment. Cell networks don't have a say in what I do at IP/TCP layer.
- B-Con 7y agoThey literally said that cell networks don't allow it without the keep alive. You quoted it and said they were wrong because... you can use a keep alive. I'm confused as to what you're correcting.