Complete NIO echo server