Is there any difference between C and C++ pipes implementation? Is there any C++ library that makes using pipes easier? I ask those questions because there are many 'wrapper' classes in C++ that wraps C (like string, vector etc.) Is there anything that 'wraps' pipes?
<Thanks>
edek 0 Junior Poster
Recommended Answers
Jump to Postpipes don't work at all in win32 programs, only console programs on Ms-Windows platforms. See the discussion here for work-around.
Jump to Post> Is there anything that 'wraps' pipes?
i do not know of any, but it is very easy to roll out one of our own. eg.#include <stdio.h> #include <boost/iostreams/device/file_descriptor.hpp> #include <boost/iostreams/stream.hpp> #include <fstream> #include <iostream> using namespace boost::iostreams ; struct opipestream : stream< file_descriptor_sink > { …
All 5 Replies
Salem 5,265 Posting Sage
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
vijayan121 1,152 Posting Virtuoso
edek 0 Junior Poster
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.