<tfoot id='Mmut0'></tfoot>
    <bdo id='Mmut0'></bdo><ul id='Mmut0'></ul>
<i id='Mmut0'><tr id='Mmut0'><dt id='Mmut0'><q id='Mmut0'><span id='Mmut0'><b id='Mmut0'><form id='Mmut0'><ins id='Mmut0'></ins><ul id='Mmut0'></ul><sub id='Mmut0'></sub></form><legend id='Mmut0'></legend><bdo id='Mmut0'><pre id='Mmut0'><center id='Mmut0'></center></pre></bdo></b><th id='Mmut0'></th></span></q></dt></tr></i><div id='Mmut0'><tfoot id='Mmut0'></tfoot><dl id='Mmut0'><fieldset id='Mmut0'></fieldset></dl></div>

    <small id='Mmut0'></small><noframes id='Mmut0'>

    1. <legend id='Mmut0'><style id='Mmut0'><dir id='Mmut0'><q id='Mmut0'></q></dir></style></legend>
    2. 将 boost::asio::async_read 与 stdin 一起使用?

      Using boost::asio::async_read with stdin?(将 boost::asio::async_read 与 stdin 一起使用?)
    3. <i id='dGt6H'><tr id='dGt6H'><dt id='dGt6H'><q id='dGt6H'><span id='dGt6H'><b id='dGt6H'><form id='dGt6H'><ins id='dGt6H'></ins><ul id='dGt6H'></ul><sub id='dGt6H'></sub></form><legend id='dGt6H'></legend><bdo id='dGt6H'><pre id='dGt6H'><center id='dGt6H'></center></pre></bdo></b><th id='dGt6H'></th></span></q></dt></tr></i><div id='dGt6H'><tfoot id='dGt6H'></tfoot><dl id='dGt6H'><fieldset id='dGt6H'></fieldset></dl></div>
      <legend id='dGt6H'><style id='dGt6H'><dir id='dGt6H'><q id='dGt6H'></q></dir></style></legend>
        <tbody id='dGt6H'></tbody>
        <tfoot id='dGt6H'></tfoot>

            <small id='dGt6H'></small><noframes id='dGt6H'>

              • <bdo id='dGt6H'></bdo><ul id='dGt6H'></ul>
              • 本文介绍了将 boost::asio::async_read 与 stdin 一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                简短的问题:我有一个实时模拟,它作为后台进程运行,并通过管道连接到调用程序.我想使用 stdin 向该进程发送命令,以通过 stdout 从中获取某些信息.现在因为它是一个实时进程,所以它必须是一个非阻塞输入.boost::asio::async_read 与 iostream::cin 结合使用是否是该任务的好主意?如果可行,我将如何使用该功能?还有什么建议吗?

                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?

                推荐答案

                boost::asio::posix::stream_descriptor

                http:///www.boost.org/doc/libs/release/doc/html/boost_asio/example/cpp03/chat/posix_chat_client.cpp

                这篇关于将 boost::asio::async_read 与 stdin 一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How to limit the number of running instances in C++(C++中如何限制运行实例的数量)
                How to find out what dependencies (i.e other Boost libraries) a particular Boost library requires?(如何找出特定 Boost 库需要哪些依赖项(即其他 Boost 库)?)
                What#39;s the purpose of a leading quot;::quot; in a C++ method call(引导“::的目的是什么?在 C++ 方法调用中)
                Boost Spirit x3: parse into structs(Boost Spirit x3:解析为结构体)
                How boost auto-linking makes choice?(boost自动链接如何做出选择?)
                boost::asio UDP broadcasting(boost::asio UDP 广播)
                  • <small id='oIB8c'></small><noframes id='oIB8c'>

                      <bdo id='oIB8c'></bdo><ul id='oIB8c'></ul>

                    • <tfoot id='oIB8c'></tfoot>

                        <tbody id='oIB8c'></tbody>
                        <legend id='oIB8c'><style id='oIB8c'><dir id='oIB8c'><q id='oIB8c'></q></dir></style></legend>

                        1. <i id='oIB8c'><tr id='oIB8c'><dt id='oIB8c'><q id='oIB8c'><span id='oIB8c'><b id='oIB8c'><form id='oIB8c'><ins id='oIB8c'></ins><ul id='oIB8c'></ul><sub id='oIB8c'></sub></form><legend id='oIB8c'></legend><bdo id='oIB8c'><pre id='oIB8c'><center id='oIB8c'></center></pre></bdo></b><th id='oIB8c'></th></span></q></dt></tr></i><div id='oIB8c'><tfoot id='oIB8c'></tfoot><dl id='oIB8c'><fieldset id='oIB8c'></fieldset></dl></div>