echo app with I/O multiplexing