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

Last change on this file since 10 was 10, checked in by Sanahuja Guillaume, 8 years ago

lic

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