2017-10-17 22:00:45 +08:00
|
|
|
#ifndef QQTLANPROTOCOL_H
|
|
|
|
#define QQTLANPROTOCOL_H
|
|
|
|
|
|
|
|
#include "qqtprotocol.h"
|
2017-10-18 08:05:58 +08:00
|
|
|
#include "qqtserver.h"
|
2017-10-17 22:00:45 +08:00
|
|
|
|
2017-10-29 21:38:30 +08:00
|
|
|
class QQTLanProtocol : public QQtProtocol
|
2017-10-17 22:00:45 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit QQTLanProtocol(QObject *parent = 0);
|
|
|
|
|
2017-10-29 21:38:30 +08:00
|
|
|
// QQtProtocol interface
|
2017-10-17 22:00:45 +08:00
|
|
|
public:
|
|
|
|
quint16 minlength() override;
|
|
|
|
quint16 maxlength() override;
|
|
|
|
quint16 splitter(const QByteArray &s) override;
|
|
|
|
bool dispatcher(const QByteArray &m) override;
|
|
|
|
};
|
|
|
|
|
2017-10-18 08:05:58 +08:00
|
|
|
QQTServer *QQTSingleServer(QObject* parent);
|
|
|
|
|
2017-10-17 22:00:45 +08:00
|
|
|
#endif // QQTLANPROTOCOL_H
|