aboutsummaryrefslogtreecommitdiff
path: root/src/UdpTasks/udpdatastructure.h
blob: 16bd1f9150cec116ca756bd5c3e90110d24e8d1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef UDPDATASTRUCTURE_H
#define UDPDATASTRUCTURE_H

#include <QHostAddress>
#include <QDateTime>

// heartbeat struct for incoming udp heartbeats
struct UdpData
{
    // update time or creation time
    qint64 time = QDateTime::currentSecsSinceEpoch();

    // address information
    QString         ip   = "";
    unsigned short  port = 0;

    // gamename (beacons)
    QString gamename = "";

    // secure / validate challenge data
    QString secure = "";

    // raw data from socket
    QString rawData = "";

    // parsed data as key->value
    QMultiHash<QString, QString> serverData;
};

#endif // UDPDATASTRUCTURE_H