Line | |
---|
1 | #ifndef BNCNETQUERYUDP_H
|
---|
2 | #define BNCNETQUERYUDP_H
|
---|
3 |
|
---|
4 | #include "bncnetquery.h"
|
---|
5 |
|
---|
6 | class 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 waitForReadyRead(QByteArray& outData);
|
---|
16 |
|
---|
17 | private slots:
|
---|
18 | void slotKeepAlive();
|
---|
19 |
|
---|
20 | private:
|
---|
21 | QUdpSocket* _udpSocket;
|
---|
22 | QEventLoop* _eventLoop;
|
---|
23 | QHostAddress _address;
|
---|
24 | int _port;
|
---|
25 | char _keepAlive[12];
|
---|
26 | int _session;
|
---|
27 | };
|
---|
28 |
|
---|
29 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.