author | unc0rr |
Mon, 12 Feb 2007 21:57:29 +0000 | |
changeset 438 | 04bcc3fb127a |
parent 413 | 523f1769f2bc |
child 486 | 7ea71cd3acd5 |
permissions | -rw-r--r-- |
413
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
1 |
#ifndef _NET_UDPSERVER_INCLUDED |
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
2 |
#define _NET_UDPSERVER_INCLUDED |
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
3 |
|
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
4 |
#include <QObject> |
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
5 |
|
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
6 |
class QUdpSocket; |
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
7 |
|
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
8 |
class HWNetUdpServer : public QObject |
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
9 |
{ |
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
10 |
Q_OBJECT |
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
11 |
|
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
12 |
public: |
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
13 |
HWNetUdpServer(QObject *parent = 0); |
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
14 |
|
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
15 |
private slots: |
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
16 |
void onClientRead(); |
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
17 |
|
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
18 |
private: |
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
19 |
QUdpSocket* pUdpSocket; |
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
20 |
}; |
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
21 |
|
523f1769f2bc
udp server detecting experimental version (added files)
displacer
parents:
diff
changeset
|
22 |
#endif // _NET_UDPSERVER_INCLUDED |