Re: [asio-users] tuntap or named pipe support?
Brought to you by:
chris_kohlhoff
|
From: Hal F. <ha...@ha...> - 2009-04-17 23:51:40
|
Armen, I believe the posix::stream_descriptor class is provided for that purpose. There is an example in the standard boot distribution: boost_asio/example/chat/posix_chat_client.cpp -Hal On Fri, 2009-04-17 at 18:34 -0400, Armen Babikyan wrote: > Hello, > > I am writing a system that ferries packets between a tuntap device (e.g. > /dev/net/tun) and several sockets, and am currently evaluating several > C++ asynchronous networking tools for the job, including boost::asio. > > While I see that boost::asio has extensive support for network/local > sockets and some character devices like serial ports, I haven't seen > explicit support for other file-like devices, such as named pipes or > other character devices (like tuntap). Is most of the support merely > implicit and the no one has tried using it, or are there other > implementation gotchas I should keep in mind before proceeding? > > Better yet, are there any open source projects that are using > boost::asio together with named pipes, tuntap devices, or something > similar that I may have overlooked? > > Any feedback is greatly appreciated. Thanks! > > Armen > |