##// END OF EJS Templates
Étiquette Working snapshot ajoutée à la révision 483cfe27e044
Étiquette Working snapshot ajoutée à la révision 483cfe27e044

File last commit:

r0:1aa783210b8e default
r6:068bddcaf0c7 default
Show More
tcp_terminal_client.h
31 lines | 605 B | text/x-c | CLexer
/ src / common / tcp_terminal_client.h
#ifndef TCP_TERMINAL_CLIENT_H
#define TCP_TERMINAL_CLIENT_H
#include <QObject>
#include <QTcpSocket>
#include <QProcess>
#include <QThread>
#include <QMutex>
class TCP_Terminal_Client : public QObject
{
Q_OBJECT
public:
explicit TCP_Terminal_Client(QObject *parent = 0);
void connectToServer(const QString& IP,int port);
void connectToServer();
bool isConnected();
void sendText(const QString& text);
void startServer();
void startServer(int port);
signals:
public slots:
private:
QTcpSocket* soc;
QProcess* ServerProc;
};
#endif // TCP_TERMINAL_CLIENT_H