Boost logo

Boost Users :

Subject: [Boost-users] [asio] Named pipes on Windows?
From: Allen Cronce (allenslists_at_[hidden])
Date: 2009-04-23 10:27:58


Hi all,

I'm working on a cross platform server daemon. Clients communicate
with the daemon using boost asio.

For the posix implementation, it's convenient and appropriate in our
case to use Unix domain sockets. I've experimented with the related
asio "local" sample code and verified that it will work for our
purposes.

For Windows it looks like named pipes are sort of the equivalent of
Unix domain sockets. But while asio has a "stream_handle" interface
that accepts a Windows handle, all of the sample and test code passes
invalid handles. I haven't found any working sample or test code that
specifically integrates named pipes with asio.

All I've found so far is an email to this list on March 13th from
Andrew Solodovnikov who was having problems getting named pipes to
work with asio.

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

Thanks in advance.

Best,

--
Allen Cronce

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