21 #ifndef SERVERTHREAD_H_INCLUDED
22 #define SERVERTHREAD_H_INCLUDED
28 #define SEVER_THREAD_RCV_INTERVAL 10
37 namespace lowrappers {
83 virtual int callback(
const char *path,
const char *types,
84 lo_arg **argv,
int argc, lo_message msg) = 0;
104 ServerThread(
const std::string &port, lo_err_handler err_h);
116 ServerThread(
const std::string& group,
const std::string &port, lo_err_handler err_h);
130 ServerThread(
const std::string& group,
const std::string &port,
131 const std::string& ifaceIp, lo_err_handler err_h);
141 bool isValid()
const;
148 std::string url()
const;
176 bool addMethod(
const char *path,
const char *typespec,
177 lo_method_handler h,
void *user_data);
198 bool addListener(
const char *path,
const char *typespec,
208 void delMethod(
const char *path,
const char *typespec);
218 static int genericCallback(
const char *path,
const char *types, lo_arg **argv,
219 int argc, lo_message msg,
void *user_data);
228 #endif // SERVERTHREAD_H_INCLUDED
virtual void run()=0
This is the method that will be executed by the thread.
A listener interface for listeners to be called by the ServerThread when incoming OSC messages are re...
Definition: ServerThread.h:64
A server thread with Liblo-style callback capabilities.
Definition: ServerThread.h:52
A wrapper for the std::thread wrapping it into a Java-style thread object.
Definition: Thread.h:39