summaryrefslogtreecommitdiff
path: root/src/cprlisten.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cprlisten.h')
-rw-r--r--src/cprlisten.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cprlisten.h b/src/cprlisten.h
index 57551f5..5808aec 100644
--- a/src/cprlisten.h
+++ b/src/cprlisten.h
@@ -33,15 +33,25 @@
#include "thread.h"
#include "mutex.h"
+#include "aa_socket.h"
+
class CPRListen: public Thread {
public:
CPRListen(unsigned short port);
~CPRListen();
+ bool cprChanged();
std::string getCpr();
void thread_main();
+ void stop(); // Stops the call to listen
+
private:
+
+ volatile bool running;
+ AASocket *socket;
+
+ bool cprchanged;
unsigned short port;
std::string cpr;
Mutex mutex;