Using boost::asio::async_read with stdin?

Posted by yeus on Stack Overflow See other posts from Stack Overflow or by yeus
Published on 2010-05-14T01:06:20Z Indexed on 2010/05/14 1:14 UTC
Read the original article Hit count: 351

Filed under:
|
|
|
|

hi poeple.. short question: I have a realtime-simulation which is running as a backround process and is connected with pipes to the calling pogramm. I want to send commands to that process using stdin to get certain information from it via stdout. Now because it is a real-time process, it has to be a non blocking input. Is boost::asio::async_read in conjunction with iostream::cin a good idea for this task? how would I use that function if it is feasible? Any more suggestions?

© Stack Overflow or respective owner

Related posts about asynchronous

Related posts about c++