summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/OSCReceiver.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-07-12 06:34:30 +0000
committerDavid Robillard <d@drobilla.net>2006-07-12 06:34:30 +0000
commit7e013dc6986fa9d6dc8616d494d9de5d192c4c69 (patch)
tree89bc9d97375fafae33cf22f1020c788baa8d326c /src/libs/engine/OSCReceiver.h
parent120757b8cb154266aae21472a49f0c00309a7dde (diff)
downloadingen-7e013dc6986fa9d6dc8616d494d9de5d192c4c69.tar.gz
ingen-7e013dc6986fa9d6dc8616d494d9de5d192c4c69.tar.bz2
ingen-7e013dc6986fa9d6dc8616d494d9de5d192c4c69.zip
Factored out Thread (and Slave, an explicitly signal-driven thread)
git-svn-id: http://svn.drobilla.net/lad/ingen@87 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/OSCReceiver.h')
-rw-r--r--src/libs/engine/OSCReceiver.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libs/engine/OSCReceiver.h b/src/libs/engine/OSCReceiver.h
index 15a30fc1..c966632f 100644
--- a/src/libs/engine/OSCReceiver.h
+++ b/src/libs/engine/OSCReceiver.h
@@ -43,6 +43,8 @@ inline static int name##_cb(LO_HANDLER_ARGS, void* osc_receiver)\
{ return ((OSCReceiver*)osc_receiver)->m_##name##_cb(path, types, argv, argc, msg); }
+/* FIXME: Make this receive and preprocess in the same thread? */
+
/** Receives OSC messages from liblo.
*
@@ -66,7 +68,9 @@ private:
// Prevent copies (undefined)
OSCReceiver(const OSCReceiver&);
OSCReceiver& operator=(const OSCReceiver&);
-
+
+ virtual void _run();
+
static void error_cb(int num, const char* msg, const char* path);
static int set_response_address_cb(LO_HANDLER_ARGS, void* osc_receiver);
static int generic_cb(LO_HANDLER_ARGS, void* osc_receiver);
@@ -112,8 +116,7 @@ private:
#endif
const char* const _port;
- bool _is_activated;
- lo_server_thread _st;
+ lo_server _server;
/** Cached OSC responder (for most recent incoming message) */
CountedPtr<OSCResponder> _osc_responder;