Poco::Remoting::Binary

class BinaryStreamBuf

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

Description

This stream sends a two-byte length word before every block send.

Inheritance

Direct Base Classes: Poco::Net::SocketStreamBuf

All Base Classes: Poco::BufferedBidirectionalStreamBuf, Poco::Net::SocketStreamBuf

Member Summary

Member Functions: close, readFromDevice, writeToDevice

Inherited Functions: readFromDevice, socketImpl, writeToDevice

Types

PacketLength protected

typedef Poco::UInt16 PacketLength;

Constructors

BinaryStreamBuf

BinaryStreamBuf(
    const Poco::Net::StreamSocket & socket
);

Creates the BinaryStreamBuf and connects it to the given socket.

Destructor

~BinaryStreamBuf

~BinaryStreamBuf();

Destroys the BinaryStreamBuf.

Member Functions

close

void close();

Closes the stream

readFromDevice protected

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

writeToDevice protected

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