Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] Named pipes on Windows?
From: Boris Schaeling (boris_at_[hidden])
Date: 2009-04-23 12:13:02


On Thu, 23 Apr 2009 16:27:58 +0200, Allen Cronce <allenslists_at_[hidden]>
wrote:

> [...]Has anyone successfully used asio and Windows named pipes? If so,
> would you be willing to share some sample code that demonstrates the
> functionality?

I've used asynchronous operations with named pipes in Boost.Process. The
named pipe is hidden within Boost.Process and not exposed by the library
(this is something which will probably change). The code however works.

I wrote an article about Boost.Process only a few days ago. There is a
sample with Boost.Asio at
http://www.highscore.de/cpp/process/index.html#communicating. Here's the
code which I use to create a named pipe:
https://svn.boost.org/svn/boost/sandbox/process/boost/process/detail/pipe.hpp
(search for BOOST_PROCESS_WINDOWS_USE_NAMED_PIPE).

HTH,
Boris


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net