Library: Remoting/Binary
Package: Binary
Header: Poco/Remoting/Binary/BinaryStream.h
This stream sends a two-byte length word before every block send.
Direct Base Classes: Poco::Net::SocketStreamBuf
All Base Classes: Poco::BufferedBidirectionalStreamBuf, Poco::Net::SocketStreamBuf
Member Functions: close, readFromDevice, writeToDevice
Inherited Functions: readFromDevice, socketImpl, writeToDevice
typedef Poco::UInt16 PacketLength;
BinaryStreamBuf(
const Poco::Net::StreamSocket & socket
);
Creates the BinaryStreamBuf and connects it to the given socket.
~BinaryStreamBuf();
Destroys the BinaryStreamBuf.
void close();
Closes the stream
int readFromDevice(
char * buffer,
std::streamsize length
);
int writeToDevice(
const char * buffer,
std::streamsize length
);