mirror of
https://github.com/overte-org/overte.git
synced 2025-08-14 01:29:55 +02:00
Rename PacketProcessor to PacketReceiver
This commit is contained in:
parent
92462db4e1
commit
44c34ac566
2 changed files with 12 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// PacketProcessor.cpp
|
||||
// PacketReceiver.cpp
|
||||
// interface/src
|
||||
//
|
||||
// Created by Stephen Birarda on 1/23/2014.
|
||||
|
@ -21,16 +21,16 @@
|
|||
#include "Menu.h"
|
||||
#include "InterfaceLogging.h"
|
||||
|
||||
#include "PacketProcessor.h"
|
||||
#include "PacketReceiver.h"
|
||||
|
||||
PacketProcessor::PacketProcessor(QObject* parent) :
|
||||
PacketReceiver::PacketReceiver(QObject* parent) :
|
||||
QObject(parent),
|
||||
_packetListenerMap()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void PacketProcessor::registerPacketListener(Packet::Type type, QObject* object, QString methodName) {
|
||||
void PacketReceiver::registerPacketListener(Packet::Type type, QObject* object, QString methodName) {
|
||||
packetListenerLock.lock();
|
||||
if (packetListenerMap.contains(type)) {
|
||||
qDebug() << "Warning: Registering a packet listener for packet type " << type
|
||||
|
@ -40,9 +40,9 @@ void PacketProcessor::registerPacketListener(Packet::Type type, QObject* object,
|
|||
packetListenerLock.unlock();
|
||||
}
|
||||
|
||||
void PacketProcessor::processDatagrams() {
|
||||
void PacketReceiver::processDatagrams() {
|
||||
PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings),
|
||||
"PacketProcessor::processDatagrams()");
|
||||
"PacketReceiver::processDatagrams()");
|
||||
|
||||
if (_isShuttingDown) {
|
||||
return; // bail early... we're shutting down.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// PacketProcessor.h
|
||||
// PacketReceiver.h
|
||||
// interface/src
|
||||
//
|
||||
// Created by Stephen Birarda on 1/23/2014.
|
||||
|
@ -10,15 +10,15 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
#ifndef hifi_PacketProcessor_h
|
||||
#define hifi_PacketProcessor_h
|
||||
#ifndef hifi_PacketReceiver_h
|
||||
#define hifi_PacketReceiver_h
|
||||
|
||||
#include <QtCore/QObject>
|
||||
|
||||
class PacketProcessor : public QObject {
|
||||
class PacketReceiver : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
PacketProcessor(QObject* parent = 0);
|
||||
PacketReceiver(QObject* parent = 0);
|
||||
|
||||
int getInPacketCount() const { return _inPacketCount; }
|
||||
int getOutPacketCount() const { return _outPacketCount; }
|
||||
|
@ -44,4 +44,4 @@ private:
|
|||
bool _isShuttingDown = false;
|
||||
};
|
||||
|
||||
#endif // hifi_PacketProcessor_h
|
||||
#endif // hifi_PacketReceiver_h
|
||||
|
|
Loading…
Reference in a new issue