aboutsummaryrefslogtreecommitdiff
path: root/client/esp/mytcpsocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/esp/mytcpsocket.h')
-rw-r--r--client/esp/mytcpsocket.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/client/esp/mytcpsocket.h b/client/esp/mytcpsocket.h
new file mode 100644
index 0000000..4a7e543
--- /dev/null
+++ b/client/esp/mytcpsocket.h
@@ -0,0 +1,32 @@
+#ifndef MYTCPSOCKET_H
+#define MYTCPSOCKET_H
+
+#include <QObject>
+#include <QTcpSocket>
+#include <QAbstractSocket>
+#include <QDebug>
+
+class MyTcpSocket : public QObject
+{
+ Q_OBJECT
+public:
+ explicit MyTcpSocket(QObject *parent = 0);
+
+ void doConnect();
+signals:
+public slots:
+ void connected();
+ void disconnected();
+ void bytesWritten(qint64 bytes);
+ void readyRead();
+private:
+ QTcpSocket *socket;
+
+
+
+
+
+};
+
+
+#endif // MYTCPSOCKET_H