1 #ifndef SOCKET_THREAD_H
2 #define SOCKET_THREAD_H
6 class socket_thread : public QThread
9 int sockfd; //Socket to server
12 socket_thread(QObject *parent);
13 void run(); // this is virtual method, we must implement it in our subclass of QThread
14 void socket_send(const char* str, int val);
17 #endif // SOCKET_THREAD_H