summaryrefslogtreecommitdiffhomepage
path: root/proto-udp/ftnoir_protocol_ftn.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-03 00:09:09 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:48:20 +0100
commit545071e998806235442edda5f575ee61e836abe9 (patch)
tree45579d717361f24c6f4a06354f5836447e691771 /proto-udp/ftnoir_protocol_ftn.h
parent4766be01022d6de50f7b42647299860c2d9909b8 (diff)
cruft
Diffstat (limited to 'proto-udp/ftnoir_protocol_ftn.h')
-rw-r--r--proto-udp/ftnoir_protocol_ftn.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/proto-udp/ftnoir_protocol_ftn.h b/proto-udp/ftnoir_protocol_ftn.h
index 8bc581bf..a7c90f5b 100644
--- a/proto-udp/ftnoir_protocol_ftn.h
+++ b/proto-udp/ftnoir_protocol_ftn.h
@@ -11,10 +11,11 @@
#pragma once
#include "ui_ftnoir_ftncontrols.h"
-#include <QUdpSocket>
#include "api/plugin-api.hpp"
+#include "compat/spinlock.hpp"
#include "options/options.hpp"
using namespace options;
+#include <QUdpSocket>
struct settings : opts {
value<int> ip1, ip2, ip3, ip4, port;
@@ -41,6 +42,8 @@ private:
QUdpSocket outSocket;
settings s;
+ mutable std::atomic_flag spl = ATOMIC_FLAG_INIT;
+
QHostAddress dest_ip { 127u << 24 | 1u };
unsigned short dest_port = 65535;