From e16206982d074e62956de00eeef611478f01c430 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 19 Aug 2008 18:51:06 +0000 Subject: Preliminary connecting via HTTP in Gtk client. Better handling of overflowed client event receive buffer. Store fixes, complain only once about orphans, don't request an orphan parent over and over. git-svn-id: http://svn.drobilla.net/lad/ingen@1447 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/OSCClientSender.hpp | 2 ++ src/libs/engine/OSCEngineReceiver.cpp | 2 +- src/libs/engine/QueuedEngineInterface.hpp | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/libs/engine') diff --git a/src/libs/engine/OSCClientSender.hpp b/src/libs/engine/OSCClientSender.hpp index d62dd1d3..c8c8418f 100644 --- a/src/libs/engine/OSCClientSender.hpp +++ b/src/libs/engine/OSCClientSender.hpp @@ -48,6 +48,8 @@ public: virtual ~OSCClientSender() { lo_address_free(_address); } + bool enabled() const { return _enabled; } + void enable() { _enabled = true; } void disable() { _enabled = false; } diff --git a/src/libs/engine/OSCEngineReceiver.cpp b/src/libs/engine/OSCEngineReceiver.cpp index a63c826b..f71bdb83 100644 --- a/src/libs/engine/OSCEngineReceiver.cpp +++ b/src/libs/engine/OSCEngineReceiver.cpp @@ -70,7 +70,7 @@ OSCEngineReceiver::OSCEngineReceiver(Engine& engine, size_t queue_size, uint16_t } // For debugging, print all incoming OSC messages - lo_server_add_method(_server, NULL, NULL, generic_cb, NULL); + //lo_server_add_method(_server, NULL, NULL, generic_cb, NULL); // Set response address for this message. // It's important this is first and returns nonzero. diff --git a/src/libs/engine/QueuedEngineInterface.hpp b/src/libs/engine/QueuedEngineInterface.hpp index 17f8c75a..3aba9c7e 100644 --- a/src/libs/engine/QueuedEngineInterface.hpp +++ b/src/libs/engine/QueuedEngineInterface.hpp @@ -62,12 +62,13 @@ public: QueuedEngineInterface(Engine& engine, size_t queued_size, size_t stamped_size); virtual ~QueuedEngineInterface() {} + std::string uri() const { return "ingen:internal"; } + void set_next_response_id(int32_t id); // Client registration virtual void register_client(ClientInterface* client); virtual void unregister_client(const string& uri); - // Engine commands virtual void load_plugins(); -- cgit v1.2.1