diff options
Diffstat (limited to 'proto-udp')
-rw-r--r-- | proto-udp/ftnoir_protocol_ftn.cpp | 2 | ||||
-rw-r--r-- | proto-udp/ftnoir_protocol_ftn.h | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/proto-udp/ftnoir_protocol_ftn.cpp b/proto-udp/ftnoir_protocol_ftn.cpp index a1f445f0..a4a924b1 100644 --- a/proto-udp/ftnoir_protocol_ftn.cpp +++ b/proto-udp/ftnoir_protocol_ftn.cpp @@ -31,7 +31,7 @@ void udp::set_dest_address() (s.ip4.to<unsigned>() & 0xff) << 0 ); } -module_status udp::check_status() +module_status udp::initialize() { if (outSocket.bind(QHostAddress::Any, 0, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint)) return status_ok(); diff --git a/proto-udp/ftnoir_protocol_ftn.h b/proto-udp/ftnoir_protocol_ftn.h index a28097cb..3a5c820b 100644 --- a/proto-udp/ftnoir_protocol_ftn.h +++ b/proto-udp/ftnoir_protocol_ftn.h @@ -11,10 +11,7 @@ #pragma once #include "ui_ftnoir_ftncontrols.h" -#include <QThread> #include <QUdpSocket> -#include <QMessageBox> -#include <cmath> #include "api/plugin-api.hpp" #include "options/options.hpp" using namespace options; @@ -37,7 +34,7 @@ class udp : public QObject, public IProtocol public: udp(); - module_status check_status() override; + module_status initialize() override; void pose(const double *headpose); QString game_name() { return otr_tr("UDP over network"); |