1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/examples/qqtnetworkexample/qqtlanprotocol.cpp

37 lines
544 B
C++

#include "qqtlanprotocol.h"
QQTLanProtocol::QQTLanProtocol(QObject *parent) :
QQtProtocol(parent)
{
}
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;
}
QQtSocketTcpServer *QQTSingleServer(QObject *parent)
{
static QQtSocketTcpServer* s = new QQtSocketTcpServer(parent);
s->listen(QHostAddress::Any, 8000);
return s;
}