I\'m trying to find the best solution for nonblocking IO via stdin/stdout with the following characteristics:
Maybe boost::asio can be of use for you?