source: ntrip/branches/BNC_2.12/src/bncnetqueryudp.h@ 10298

Last change on this file since 10298 was 6787, checked in by stuerze, 10 years ago

add keep-alive request to send gga message in ntrip version 1 mode without interruption

File size: 704 bytes
Line 
1#ifndef BNCNETQUERYUDP_H
2#define BNCNETQUERYUDP_H
3
4#include "bncnetquery.h"
5
6class bncNetQueryUdp : public bncNetQuery {
7 Q_OBJECT
8 public:
9 bncNetQueryUdp();
10 virtual ~bncNetQueryUdp();
11
12 virtual void stop();
13 virtual void waitForRequestResult(const QUrl& url, QByteArray& outData);
14 virtual void startRequest(const QUrl& url, const QByteArray& gga);
15 virtual void keepAliveRequest(const QUrl& url, const QByteArray& gga);
16 virtual void waitForReadyRead(QByteArray& outData);
17
18 private slots:
19 void slotKeepAlive();
20
21 private:
22 QUdpSocket* _udpSocket;
23 QEventLoop* _eventLoop;
24 QHostAddress _address;
25 int _port;
26 char _keepAlive[12];
27 unsigned _session;
28};
29
30#endif
Note: See TracBrowser for help on using the repository browser.