Bonjour - Simplify work queue

This commit is contained in:
Jonathan Bagg
2017-11-06 20:54:34 -05:00
parent 1750662292
commit 87fd67c719
2 changed files with 19 additions and 24 deletions

View File

@@ -31,7 +31,7 @@
#include <QSocketNotifier>
#include <QtEndian>
#include <QHostAddress>
#include <QList>
#include <QQueue>
#include "qzeroconf.h"
#include <QDebug>
@@ -64,8 +64,7 @@ public:
DNSServiceRef dnssRef, browser, resolver;
DNSServiceProtocol protocol;
QSocketNotifier *bs, *browserSocket, *resolverSocket, *addressSocket;
QZeroConfService newService;
QList<QZeroConfService> work;
QQueue<QZeroConfService> work;
QByteArray txt;
public slots: