2017-10-17 22:00:45 +08:00
|
|
|
#include "qqtlanprotocol.h"
|
|
|
|
|
|
|
|
QQTLanProtocol::QQTLanProtocol(QObject *parent) :
|
2017-10-29 21:38:30 +08:00
|
|
|
QQtProtocol(parent)
|
2017-10-17 22:00:45 +08:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
quint16 QQTLanProtocol::minlength()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
quint16 QQTLanProtocol::maxlength()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
quint16 QQTLanProtocol::splitter(const QByteArray &s)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QQTLanProtocol::dispatcher(const QByteArray &m)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2017-10-18 08:05:58 +08:00
|
|
|
|
|
|
|
|
|
|
|
QQTServer *QQTSingleServer(QObject *parent)
|
|
|
|
{
|
|
|
|
static QQTServer* s = new QQTServer(parent);
|
|
|
|
s->listen(QHostAddress::Any, 8000);
|
|
|
|
return s;
|
|
|
|
}
|