#include <CNCL/Pipe.h>
CN_PIPE
CNObject
None
None
CNPipe
creates and manages Unix I/O pipes between two programs, thus
that two cooperating processes can transfer data.
Constructors:
CNPipe();
CNPipe(CNParam *param);
CNPipe(const CNString& prog);
prog
is set, the pipe
will be opened immediately. Otherwise the open() command has to be used
when needed. The destructor closes the pipe if it was not closed before.
In addition to the member functions required by CNCL, CNPipe
provides:
int open(const CNString& prog);
int close();
ostream & out();
istream & in ();
int fd_in();
int fd_out();
int get_pid();
Go to the first, previous, next, last section, table of contents.