Fixed NetSend so it can be used in debug mode.
[qt/compvision.git] / NetSend.h
1 #ifndef NETSEND_H
2 #define NETSEND_H
3 \r
4 // For now, assume all transmissions are UDP broadcast, port 12321\r
5 \r
6 // Possible format to support multiple formats:
7 // First packet of the form: 'J','P','G',#packets -or- 'R','A','W',#packets\r
8 \r
9 #include "ImageThread.h"\r
10 \r
11 #include <QUdpSocket>\r
12
13 class NetSend : public ImageThread
14 {
15         Q_OBJECT
16
17         public:
18                 NetSend(ImagePool *source, ImagePool *destination);\r
19                 void process();
20
21         private:\r
22                 QUdpSocket *udp;
23                 void sendJPG();
24                 void sendRAW();\r
25 };
26
27 #endif