Sample NIO socket server.