@Pepek said:
if (m_uiBlockSize == 0) {
if (bytesAvailable < (int)(sizeof(quint64) + sizeof(unsigned char)))
return;
in >> m_uiBlockSize;
in >> m_uiCurrentScanType;
//m_timer->singleShot(2000, this, SLOT(resetTCPConnection));
}
It's because in unsigned char I have data type that is coming next. I take it into account every time, but truth be told, it is unnecessary to be in header.