1#include "InStreamChannel.h"
3#include <QLoggingCategory>
5Q_LOGGING_CATEGORY(VncStreamChannel,
"VNC.Stream.Channel")
8 : rdr::BufferedInStream(),
9 m_pDataChannel(pDataChannel)
13bool CInStreamChannel::fillBuffer()
16 if(!m_pDataChannel || !m_pDataChannel->isOpen())
return false;
18 size_t nLen = availSpace();
22 qint64 n = m_pDataChannel->read((
char*)end, nLen);
28 qCritical(VncStreamChannel) <<
"CInStreamDataChannel::fillBuffer:"
29 << m_pDataChannel->errorString();
31 throw std::runtime_error(m_pDataChannel->errorString().toStdString());
The channel interface class.