aboutsummaryrefslogtreecommitdiff
path: root/client/mytcpsocket.h
blob: 4a7e5438bf6593406e39dc093ed39ad836b74fdb (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
#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