ChirpSim
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
controllerserver.h
Go to the documentation of this file.
1 #ifndef CONTROLLERSERVER_H
2 #define CONTROLLERSERVER_H
3 
4 #include <QObject>
5 #include <QUdpSocket>
6 
10 class ControllerServer : public QObject
11 {
12  Q_OBJECT
13 public:
14  explicit ControllerServer(QObject *parent = 0, quint16 port = 37875);
16 
17 signals:
18 
19 public slots:
23  void start();
24 
25 private slots:
29  void incomingConnection();
30 private:
31  QUdpSocket* _server;
32  quint16 _port;
33 };
34 
35 #endif // CONTROLLERSERVER_H