What other sockets?
That's what you're currently doing.I don't want to limit my users
That's incorrect. See docs for QIODevice::bytesAvailable().Qt Code:
qint64 QWsSocket::bytesAvailable() const { return buffer.size(); }To copy to clipboard, switch view to plain text mode
That's incorrect. readAll() is not virtual.Qt Code:
{ qint64 sz = bytesAvailable(); char * data = new char[sz]; sz = readData(data, sz); }To copy to clipboard, switch view to plain text mode
Incorrect, read() is not virtual.Qt Code:
qint64 QWsSocket::read(char * data, qint64 maxSize) { return readData(data, maxSize); }To copy to clipboard, switch view to plain text mode






Reply With Quote
Bookmarks