source: flair-src/trunk/tools/FlairGCS/src/UdtSocket.h @ 9

Last change on this file since 9 was 9, checked in by Sanahuja Guillaume, 5 years ago

gcs

File size: 756 bytes
Line 
1#ifndef UDTSOCKET_H
2#define UDTSOCKET_H
3
4#include <udt.h>
5#include <QObject>
6#include <QTimer>
7
8class file_ui;
9
10class UdtSocket : public QObject
11{
12    Q_OBJECT
13
14    public:
15        UdtSocket(UDTSOCKET file_socket,UDTSOCKET com_socket,QString name);
16        ~UdtSocket();
17
18    private:
19        UDTSOCKET file_socket,com_socket;
20        file_ui* file_dialog;
21        bool stop;
22        QString name;
23        QTimer *heartbeat_timer;
24        void receiveData(void);
25        void receiveFile(void);
26
27    signals:
28        void dataReady(char*,int size);
29
30    public slots:
31        void handleConnections(void);
32        void kill(void);
33        void write(const char* buf, qint64 size);
34    private slots:
35        void heartbeat(void);
36};
37
38#endif // UDTSOCKET_H
Note: See TracBrowser for help on using the repository browser.