diff options
Diffstat (limited to 'proto-udp/ftnoir_protocol_ftn.h')
-rw-r--r-- | proto-udp/ftnoir_protocol_ftn.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/proto-udp/ftnoir_protocol_ftn.h b/proto-udp/ftnoir_protocol_ftn.h index b234cd89..7838f01a 100644 --- a/proto-udp/ftnoir_protocol_ftn.h +++ b/proto-udp/ftnoir_protocol_ftn.h @@ -31,11 +31,13 @@ struct settings : opts { {} }; -class udp : public IProtocol +class udp : public QObject, public IProtocol { + Q_OBJECT + public: udp(); - bool correct(); + module_status check_status() override; void pose(const double *headpose); QString game_name() { return QCoreApplication::translate("udp_proto", "UDP over network"); @@ -43,12 +45,19 @@ public: private: QUdpSocket outSocket; settings s; + + QHostAddress dest_ip { 127u << 24 | 1u }; + unsigned short dest_port = 65535; + +private slots: + void set_dest_address(); }; // Widget that has controls for FTNoIR protocol client-settings. class FTNControls: public IProtocolDialog { Q_OBJECT + public: FTNControls(); void register_protocol(IProtocol *) {} |