boost::asio named pipe example in windows
up vote
-1
down vote
favorite
I need to transfer data between processes, I have a local server process and multiple clients process, they may send data and receive data at the same time. Previously, I use the native windows namedpipe to finish this task, however I think Winapi is not friendly to a new programmer. I've heard that boost::asio implement it which is based native windows named pipe.
But I found no example or tutorial about the use of boost::asio::windows::stream_handle
, win_iocp_handle_service
or somethings related, almost all example are related to tcp and udp
. There is no need for me to accomplish it in remote machine, and I just want to find a standard and simple way to use windows named pipe and accomplish asynchronous communication through boost library in local machine.Could any one show me an brief example.
c++ winapi boost boost-asio named-pipes
add a comment |
up vote
-1
down vote
favorite
I need to transfer data between processes, I have a local server process and multiple clients process, they may send data and receive data at the same time. Previously, I use the native windows namedpipe to finish this task, however I think Winapi is not friendly to a new programmer. I've heard that boost::asio implement it which is based native windows named pipe.
But I found no example or tutorial about the use of boost::asio::windows::stream_handle
, win_iocp_handle_service
or somethings related, almost all example are related to tcp and udp
. There is no need for me to accomplish it in remote machine, and I just want to find a standard and simple way to use windows named pipe and accomplish asynchronous communication through boost library in local machine.Could any one show me an brief example.
c++ winapi boost boost-asio named-pipes
1
So using a c++ implementation of a c++ abstraction of a posix abstraction is going to be less confusing to new developers than simply using the native winapi? Especially when the latter is well documented on MSDN?
– Chris Becke
Nov 12 at 5:04
simply example can look like - pastebin.com/qk3ASXK4
– RbMm
Nov 18 at 16:16
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I need to transfer data between processes, I have a local server process and multiple clients process, they may send data and receive data at the same time. Previously, I use the native windows namedpipe to finish this task, however I think Winapi is not friendly to a new programmer. I've heard that boost::asio implement it which is based native windows named pipe.
But I found no example or tutorial about the use of boost::asio::windows::stream_handle
, win_iocp_handle_service
or somethings related, almost all example are related to tcp and udp
. There is no need for me to accomplish it in remote machine, and I just want to find a standard and simple way to use windows named pipe and accomplish asynchronous communication through boost library in local machine.Could any one show me an brief example.
c++ winapi boost boost-asio named-pipes
I need to transfer data between processes, I have a local server process and multiple clients process, they may send data and receive data at the same time. Previously, I use the native windows namedpipe to finish this task, however I think Winapi is not friendly to a new programmer. I've heard that boost::asio implement it which is based native windows named pipe.
But I found no example or tutorial about the use of boost::asio::windows::stream_handle
, win_iocp_handle_service
or somethings related, almost all example are related to tcp and udp
. There is no need for me to accomplish it in remote machine, and I just want to find a standard and simple way to use windows named pipe and accomplish asynchronous communication through boost library in local machine.Could any one show me an brief example.
c++ winapi boost boost-asio named-pipes
c++ winapi boost boost-asio named-pipes
edited Nov 11 at 12:17
asked Nov 11 at 12:03
Gordon
686
686
1
So using a c++ implementation of a c++ abstraction of a posix abstraction is going to be less confusing to new developers than simply using the native winapi? Especially when the latter is well documented on MSDN?
– Chris Becke
Nov 12 at 5:04
simply example can look like - pastebin.com/qk3ASXK4
– RbMm
Nov 18 at 16:16
add a comment |
1
So using a c++ implementation of a c++ abstraction of a posix abstraction is going to be less confusing to new developers than simply using the native winapi? Especially when the latter is well documented on MSDN?
– Chris Becke
Nov 12 at 5:04
simply example can look like - pastebin.com/qk3ASXK4
– RbMm
Nov 18 at 16:16
1
1
So using a c++ implementation of a c++ abstraction of a posix abstraction is going to be less confusing to new developers than simply using the native winapi? Especially when the latter is well documented on MSDN?
– Chris Becke
Nov 12 at 5:04
So using a c++ implementation of a c++ abstraction of a posix abstraction is going to be less confusing to new developers than simply using the native winapi? Especially when the latter is well documented on MSDN?
– Chris Becke
Nov 12 at 5:04
simply example can look like - pastebin.com/qk3ASXK4
– RbMm
Nov 18 at 16:16
simply example can look like - pastebin.com/qk3ASXK4
– RbMm
Nov 18 at 16:16
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53248535%2fboostasio-named-pipe-example-in-windows%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
So using a c++ implementation of a c++ abstraction of a posix abstraction is going to be less confusing to new developers than simply using the native winapi? Especially when the latter is well documented on MSDN?
– Chris Becke
Nov 12 at 5:04
simply example can look like - pastebin.com/qk3ASXK4
– RbMm
Nov 18 at 16:16