Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef TCP_H
- #define TCP_H
- #include <QtNetwork/QTcpSocket>
- #include <Qt>
- #include <QString>
- #include <QAbstractSocket>
- #include <QHash>
- #include <QHostAddress>
- #include <QTime>
- #include <QTimer>
- static const int MaxBufferSize = 1024000;
- class Tcp : public QObject
- {
- Q_OBJECT
- private:
- QTcpSocket *tcpSocket;
- public:
- Tcp();
- ~Tcp();
- int Port;
- QString Host;
- bool Connected;
- void Start();
- void Disconnect();
- void Send(QString);
- QString Read();
- signals:
- void dataReceived(QString sData);
- public slots:
- };
- #endif // TCP_H
Add Comment
Please, Sign In to add comment