#ifndef QQTLANPROTOCOL_H #define QQTLANPROTOCOL_H #include "qqtprotocol.h" #include "qqtsockettcpserver.h" class QQTLanProtocol : public QQtProtocol { public: explicit QQTLanProtocol(QObject *parent = 0); // QQtProtocol interface public: quint16 minlength() override; quint16 maxlength() override; quint16 splitter(const QByteArray &s) override; bool dispatcher(const QByteArray &m) override; }; QQtSocketTcpServer *QQTSingleServer(QObject* parent); #endif // QQTLANPROTOCOL_H