20 #ifndef VSRECEIVER_H_INCLUDED
21 #define VSRECEIVER_H_INCLUDED
84 VSReceiver(
const std::string& group,
const std::string &port,
85 const std::string& ifaceIp, lo_err_handler err_h);
105 const std::string &port);
111 void setListener(VisualStreamReceiver::Listener* listener);
132 VisualStreamReceiver::Listener* listener_;
133 VisualStreamReceiver::PingHandler* pingHandler_;
134 std::list<std::unique_ptr<lowrappers::ServerThread::Listener>> functorList_;
144 const std::string& port,
145 const std::string& iface);
154 void addListenerAndStoreFunctor(
const char* path,
const char* types,
160 int onSourceActivateI(
const char *path,
const char *types,lo_arg **argv,
161 int argc, lo_message msg);
163 int onSourceDeactivateI(
const char *path,
const char *types,lo_arg **argv,
164 int argc, lo_message msg);
166 int onSourcePositionIff(
const char *path,
const char *types,lo_arg **argv,
167 int argc, lo_message msg);
169 int onSourceAngleIf(
const char *path,
const char *types,lo_arg **argv,
170 int argc, lo_message msg);
172 int onSourceTypeIi(
const char *path,
const char *types,lo_arg **argv,
173 int argc, lo_message msg);
175 int onSourceNameIs(
const char *path,
const char *types,lo_arg **argv,
176 int argc, lo_message msg);
178 int onSourceColorIiii(
const char *path,
const char *types,lo_arg **argv,
179 int argc, lo_message msg);
181 int onSourceGroupIdIi(
const char *path,
const char *types,lo_arg **argv,
182 int argc, lo_message msg);
184 int onSourceRotatingDirectionIi(
const char *path,
const char *types,lo_arg **argv,
185 int argc, lo_message msg);
187 int onSourceScalingDirectionIi(
const char *path,
const char *types,lo_arg **argv,
188 int argc, lo_message msg);
190 int onSourceDopplerEffectIi(
const char *path,
const char *types,lo_arg **argv,
191 int argc, lo_message msg);
193 int onListenerPositionIff(
const char *path,
const char *types,lo_arg **argv,
194 int argc, lo_message msg);
196 int onGlobalMaxNoSourcesI(
const char *path,
const char *types,lo_arg **argv,
197 int argc, lo_message msg);
199 int onGlobalRenderpolygonSiVarFs(
const char *path,
const char *types,lo_arg **argv,
200 int argc, lo_message msg);
202 int onProjectXmlDumpIs(
const char *path,
const char *types,lo_arg **argv,
203 int argc, lo_message msg);
205 int onStreamVisualPongI(
const char *path,
const char *types,lo_arg **argv,
206 int argc, lo_message msg);
208 int onStreamVisualConnect(
const char *path,
const char *types,lo_arg **argv,
209 int argc, lo_message msg);
211 int onStreamVisualDisconnect(
const char *path,
const char *types,lo_arg **argv,
212 int argc, lo_message msg);
214 int onReplySis(
const char *path,
const char *types,lo_arg **argv,
215 int argc, lo_message msg);
217 int onPluginStandaloneI(
const char *path,
const char *types,lo_arg **argv,
218 int argc, lo_message msg);
223 int onStreamVisualPingI(
const char *path,
const char *types,lo_arg **argv,
224 int argc, lo_message msg);
230 #endif // VSRECEIVER_H_INCLUDED
int port()
Returns the port this server-thread is listening on.
Definition: VSReceiver.cpp:96
An abstract class describing the interface for a class that sends out the WONDER-specific OSC-message...
Definition: OscSender.h:43
static wonder::VisualStreamReceiver::Factory * getFactory()
A singleton-getter for a wonder::VisualStreamReceiver::Factory that creates instances of VSReceiver...
Definition: VSReceiver.cpp:24
Another listener interface especially for incoming ping messages.
Definition: VisualStreamReceiver.h:258
An interface defining an OSC server thread that receives and handles the messages sent via WONDER's "...
Definition: VisualStreamReceiver.h:36
A factory class that creates VisualStreamReceiver instances.
Definition: VisualStreamReceiver.h:318
VSReceiver(lo_err_handler err_h)
Constructor.
Definition: VSReceiver.cpp:30
An OscServer-Thread that calls the message-handling methods of a VisualStreamCallInterface object...
Definition: VSReceiver.h:43
void join()
Joins this server thread.
Definition: VSReceiver.cpp:91
void setPingHandler(PingHandler *pingHandler)
Sets the PingHandler.
Definition: VSReceiver.cpp:76
void start()
Starts this server thread.
Definition: VSReceiver.cpp:81
An interface for a thread implementing the OscSender interface.
Definition: OscSenderThread.h:38
A listener interface for listeners to be called by the ServerThread when incoming OSC messages are re...
Definition: ServerThread.h:64
wonder::OscSender * createSender(const std::string &host, const std::string &port)
Returns an OscSender that sends from the port of this server thread to the specified destination...
Definition: VSReceiver.cpp:59
A server thread with Liblo-style callback capabilities.
Definition: ServerThread.h:52
void setListener(VisualStreamReceiver::Listener *listener)
Sets the Listener.
Definition: VSReceiver.cpp:71
virtual ~VSReceiver()
Destructor.
Definition: VSReceiver.cpp:55
wonder::OscSenderThread * createSenderThread(const std::string &host, const std::string &port)
Definition: VSReceiver.cpp:65
void stop()
Stops this server thread.
Definition: VSReceiver.cpp:86