Subsock no longer exsists (#987)

* Subsock no longer exsists

use the new SubSocket as SubSock has been removed

* fix poller syntax

update to the new syntax and remove unused messaging library
This commit is contained in:
Arne Schwarck 2020-01-21 20:25:12 +01:00 committed by Willem Melching
parent f13c5d74aa
commit 855abbd99e

View file

@ -10,7 +10,6 @@
#include <czmq.h>
#include "common/util.h"
#include "common/messaging.h"
#include "common/timing.h"
#include "common/swaglog.h"
#include "common/touch.h"
@ -128,9 +127,9 @@ static void ui_init(UIState *s) {
});
#ifdef SHOW_SPEEDLIMIT
s->map_data_sock = SubSock::create(s->ctx, "liveMapData");
s->map_data_sock = SubSocket::create(s->ctx, "liveMapData");
assert(s->map_data_sock != NULL);
s->poller.registerSocket(s->map_data_sock);
s->poller->registerSocket(s->map_data_sock);
#endif
s->ipc_fd = -1;