diff options
author | David Robillard <d@drobilla.net> | 2011-04-19 20:41:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-19 20:41:24 +0000 |
commit | c9683eb916ff52ab6907773360c655d776b24f23 (patch) | |
tree | 39696902060bf6b3dbba156c1d315f4e69f7ce28 /src/gui | |
parent | 6ec78b5a9eb499646d7fa6ccb306378426008e9d (diff) | |
download | ingen-c9683eb916ff52ab6907773360c655d776b24f23.tar.gz ingen-c9683eb916ff52ab6907773360c655d776b24f23.tar.bz2 ingen-c9683eb916ff52ab6907773360c655d776b24f23.zip |
Make maximum UDP packet size a runtime parameter (--packet-size, -k).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3170 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/ConnectWindow.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp index f0e5c7b1..e5ade51c 100644 --- a/src/gui/ConnectWindow.cpp +++ b/src/gui/ConnectWindow.cpp @@ -192,11 +192,16 @@ ConnectWindow::connect(bool existing) if (!existing) { #ifdef HAVE_LIBLO if (scheme == "osc.udp" || scheme == "osc.tcp") - world->set_engine(SharedPtr<EngineInterface>(new OSCEngineSender(uri))); + world->set_engine( + SharedPtr<EngineInterface>( + new OSCEngineSender( + uri, + world->conf()->option("packet-size").get_int32()))); #endif #ifdef HAVE_SOUP if (scheme == "http") - world->set_engine(SharedPtr<EngineInterface>(new HTTPEngineSender(world, uri))); + world->set_engine(SharedPtr<EngineInterface>( + new HTTPEngineSender(world, uri))); #endif } else { uri = world->engine()->uri().str(); @@ -218,7 +223,9 @@ ConnectWindow::connect(bool existing) if (Raul::Process::launch(cmd)) { world->set_engine(SharedPtr<EngineInterface>( - new OSCEngineSender(string("osc.udp://localhost:").append(port_str)))); + new OSCEngineSender( + string("osc.udp://localhost:").append(port_str), + world->conf()->option("packet-size").get_int32()))); // FIXME: static args SharedPtr<ThreadedSigClientInterface> tsci(new ThreadedSigClientInterface(1024)); |