19 #ifndef WEBSOCKETSINKMANAGER_H
20 #define WEBSOCKETSINKMANAGER_H
22 #include <abstractroutingengine.h>
23 #include <abstractsink.h>
24 #include "websocketsink.h"
27 #include <libwebsockets.h>
30 #include "sys/types.h"
38 void addSingleShotSink(lws* socket, VehicleProperty::Property
property, Zone::Type
zone,
string id);
39 void addSingleShotRangedSink(lws* socket, PropertyList properties,
double start,
double end,
double seqstart,
double seqend,
string id);
40 void addSink(lws* socket, VehicleProperty::Property property,
string uuid);
41 void disconnectAll(lws* socket);
42 void removeSink(lws* socket, VehicleProperty::Property property,
string uuid);
44 void removePoll(
int fd);
46 std::map<std::string, list<WebSocketSink*> > m_sinkMap;
47 void setConfiguration(map<string, string> config);
48 void setValue(lws* socket,VehicleProperty::Property property,
string value, Zone::Type zone,
string uuid);
49 PropertyList getSupportedProperties();
53 int partialMessageIndex;
54 QByteArray incompleteMessage;
55 int expectedMessageFrames;
58 std::map<int, GIOChannel*> m_ioChannelMap;
59 std::map<int, guint> m_ioSourceMap;
61 struct lws_protocols protocollist[2];
64 std::map<std::string, std::string> configuration;
68 #endif // WEBSOCKETSINKMANAGER_H