Poco

class PipeStreamBuf

File Information

Library: Foundation
Package: Processes
Header: Poco/PipeStream.h

Description

This is the streambuf class used for reading from and writing to a Pipe.

Inheritance

Direct Base Classes: BufferedStreamBuf

All Base Classes: BufferedStreamBuf

Member Summary

Member Functions: close, readFromDevice, writeToDevice

Types

openmode

typedef BufferedStreamBuf::openmode openmode;

Constructors

PipeStreamBuf

PipeStreamBuf(
    const Pipe & pipe,
    openmode mode
);

Creates a PipeStreamBuf with the given Pipe.

Destructor

~PipeStreamBuf

~PipeStreamBuf();

Destroys the PipeStreamBuf.

Member Functions

close

void close();

Closes the pipe.

readFromDevice protected

int readFromDevice(
    char * buffer,
    std::streamsize length
);

writeToDevice protected

int writeToDevice(
    const char * buffer,
    std::streamsize length
);

Securely control IoT edge devices from anywhere   Connect a Device