Poco::Remoting::Binary

class BinaryStreamBuf

Library: Remoting/Binary
Package: Binary
Header: Poco/Remoting/Binary/BinaryStream.h

Description

The sole purpose of this stream buffer is to detect end-of-stream

Inheritance

Direct Base Classes: Poco::UnbufferedStreamBuf

All Base Classes: Poco::UnbufferedStreamBuf

Member Summary

Member Functions: close, readFromDevice, readOne, writeToDevice

Constructors

BinaryStreamBuf

BinaryStreamBuf(
    std::istream & istr
);

Creates the BinaryStreamBuf and connects it to the given input stream.

BinaryStreamBuf

BinaryStreamBuf(
    std::ostream & ostr
);

Creates the BinaryStreamBuf and connects it to the given output stream.

Destructor

~BinaryStreamBuf

~BinaryStreamBuf();

Destroys the BinaryStreamBuf.

Member Functions

close inline

void close();

Closes the stream

readFromDevice protected

int readFromDevice();

readOne protected inline

int readOne();

writeToDevice protected inline

int writeToDevice(
    char c
);