aboutsummaryrefslogtreecommitdiff
path: root/client/esp/mytcpsocket.h
diff options
context:
space:
mode:
authorNielsCoding <n.stunnebrink@student.avans.nl>2022-10-10 18:30:19 +0200
committerNielsCoding <n.stunnebrink@student.avans.nl>2022-10-10 18:30:19 +0200
commit2cdbf0173600183f1fb14fdd0e01f00e8b09f308 (patch)
treeb1f4ace8a0fd769056377710b63006bef69a8c6a /client/esp/mytcpsocket.h
parent1000c8fd861b046a72bb3957dcc04cd6b28ceede (diff)
esp code voor qt
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