Integrating packet translation with NIO network impl