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 are part of the POSIX operating system, and nothing to do with the language.
As for classes, maybe - I dunno.
I've reached my google quota for the day.
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,138
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.