26 lines
396 B
C++
26 lines
396 B
C++
#ifndef TCPSENDER_H
|
|
#define TCPSENDER_H
|
|
|
|
#include <QObject>
|
|
#include<QTcpSocket>
|
|
|
|
class TcpSender : public QObject
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
QTcpSocket * MySocket;
|
|
QString WorkerIP="192.168.137.2";
|
|
|
|
public:
|
|
explicit TcpSender(QObject *parent = nullptr);
|
|
void SendCommand(QString);
|
|
|
|
signals:
|
|
|
|
private slots:
|
|
void OnReadReady();
|
|
void OnConneceted();
|
|
};
|
|
|
|
#endif // TCPSENDER_H
|