From c9683eb916ff52ab6907773360c655d776b24f23 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 19 Apr 2011 20:41:24 +0000 Subject: 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 --- src/gui/ConnectWindow.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/gui') 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(new OSCEngineSender(uri))); + world->set_engine( + SharedPtr( + new OSCEngineSender( + uri, + world->conf()->option("packet-size").get_int32()))); #endif #ifdef HAVE_SOUP if (scheme == "http") - world->set_engine(SharedPtr(new HTTPEngineSender(world, uri))); + world->set_engine(SharedPtr( + 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( - 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 tsci(new ThreadedSigClientInterface(1024)); -- cgit v1.2.1