diff options
Diffstat (limited to 'src/connectionhandler.h')
-rw-r--r-- | src/connectionhandler.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/connectionhandler.h b/src/connectionhandler.h index 482c293..39f1c54 100644 --- a/src/connectionhandler.h +++ b/src/connectionhandler.h @@ -33,13 +33,13 @@ #include <libwebsockets.h> -#include "task.h" +#include "node.h" typedef struct lws* clientid_t; typedef std::map<clientid_t, bool> AuthList; -typedef std::map<clientid_t, std::set<taskid_t> > ConnectionList; -typedef std::list<std::pair<clientid_t, taskid_t> > SubscriberList; +typedef std::map<clientid_t, std::set<nodeid_t> > ConnectionList; +typedef std::list<std::pair<clientid_t, nodeid_t> > SubscriberList; class ConnectionHandler { @@ -53,10 +53,10 @@ public: void logout(clientid_t clientid); bool authenticated(clientid_t clientid); - void subscribe(clientid_t clientid, taskid_t taskid); - void unsubscribe(clientid_t clientid, taskid_t taskid); + void subscribe(clientid_t clientid, nodeid_t nodeid); + void unsubscribe(clientid_t clientid, nodeid_t nodeid); - SubscriberList subscriberlist(TaskIdList tasklist); + SubscriberList subscriberlist(NodeIdList nodelist); private: ConnectionList connlist; |