akashi-esquizolandia/include/advertiser.h
2020-08-25 07:07:08 -05:00

39 lines
698 B
C++

#ifndef MASTER_H
#define MASTER_H
#include "include/aopacket.h"
#include <QApplication>
#include <QHostAddress>
#include <QString>
#include <QTcpSocket>
class Advertiser : public QObject {
Q_OBJECT
public:
Advertiser(QString p_ip, int p_port, int p_ws_port, int p_local_port,
QString p_name, QString p_description,
QObject* parent = nullptr);
void contactMasterServer();
signals:
public slots:
void readData();
void socketConnected();
void socketDisconnected();
private:
QString ip;
int port;
int ws_port;
int local_port;
QString name;
QString description;
QTcpSocket* socket;
};
#endif // MASTER_H