1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/examples/qqtnetworkexample/qqtlanprotocol.h
2017-10-29 21:38:30 +08:00

23 lines
488 B
C++

#ifndef QQTLANPROTOCOL_H
#define QQTLANPROTOCOL_H
#include "qqtprotocol.h"
#include "qqtserver.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;
};
QQTServer *QQTSingleServer(QObject* parent);
#endif // QQTLANPROTOCOL_H