Android: Refactored Network manager with NIO socket channel