summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/OSCResponder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine/OSCResponder.cpp')
-rw-r--r--src/libs/engine/OSCResponder.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/libs/engine/OSCResponder.cpp b/src/libs/engine/OSCResponder.cpp
index 50619089..a6d68721 100644
--- a/src/libs/engine/OSCResponder.cpp
+++ b/src/libs/engine/OSCResponder.cpp
@@ -30,8 +30,9 @@ namespace Ingen {
/** Construct an OSCResponder from \a addr.
* Takes ownership of @a url.
*/
-OSCResponder::OSCResponder(int32_t id, char* url)
+OSCResponder::OSCResponder(ClientBroadcaster* broadcaster, int32_t id, char* url)
: Responder()
+, _broadcaster(broadcaster)
, _id(id)
, _url(url)
, _addr(NULL)
@@ -75,5 +76,15 @@ OSCResponder::respond_error(const string& msg)
}
}
+
+CountedPtr<ClientInterface>
+OSCResponder::client()
+{
+ if (_broadcaster)
+ return _broadcaster->client(client_key());
+ else
+ return NULL;
+}
+
} // namespace OM