summaryrefslogtreecommitdiff
path: root/pluginRoutingInterfaceTCP/tcpClient.h
diff options
context:
space:
mode:
Diffstat (limited to 'pluginRoutingInterfaceTCP/tcpClient.h')
-rw-r--r--pluginRoutingInterfaceTCP/tcpClient.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/pluginRoutingInterfaceTCP/tcpClient.h b/pluginRoutingInterfaceTCP/tcpClient.h
new file mode 100644
index 0000000..1d93246
--- /dev/null
+++ b/pluginRoutingInterfaceTCP/tcpClient.h
@@ -0,0 +1,36 @@
+/*
+ * udpClient.h
+ *
+ * Created on: Apr 6, 2011
+ * Author: blacky
+ */
+#ifndef UDPCLIENT_H_
+#define UDPCLIENT_H_
+
+#include <QtNetwork>
+#include "tcpMessages.h"
+
+class tcpClient : public QTcpSocket
+{
+Q_OBJECT
+public:
+ tcpClient(QString serverIP, int serverPort);
+ virtual ~tcpClient();
+
+ int connect(int source, int sink);
+ void system_ready();
+
+ bool send();
+
+public slots:
+ void sendOut();
+
+
+private:
+ QString serverIP;
+ int serverPort;
+ QByteArray sendBuffer;
+
+};
+
+#endif /* UDPCLIENT_H_ */