akashi-esquizolandia/include/advertiser.h
2020-08-23 14:43:19 -05:00

37 lines
639 B
C++

#ifndef MASTER_H
#define MASTER_H
#include <include/packet_manager.h>
#include <QString>
#include <QTcpSocket>
#include <QApplication>
#include <QHostAddress>
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);
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