This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
qSniff/source/sniffthread.cpp

24 lines
323 B
C++

#include "sniffthread.h"
#include "sniffer.h"
#include <sstream>
void SniffThread::run()
{
Sniffer sniffer(6);
while (true)
{
unsigned int data = sniffer.receive();
if (data != 0)
{
std::stringstream dataStream;
dataStream << data;
emit dataReceived(dataStream.str().c_str());
}
delay(100);
}
}