summaryrefslogtreecommitdiff
path: root/pluginRoutingInterfaceTCP/tcpClient.h
blob: 1d93246902838d545740d451fc849ce535ad3f06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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_ */