diff options
author | David Robillard <d@drobilla.net> | 2007-04-29 06:36:19 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-04-29 06:36:19 +0000 |
commit | cef54205d4a3776822cbf6726fa6cfb2a6e9bee4 (patch) | |
tree | de52894f4cb2823eb515eade31d19eeab62bd036 /src | |
parent | a74b55b40612a63b0be4964e626497fa24c55305 (diff) | |
download | ingen-cef54205d4a3776822cbf6726fa6cfb2a6e9bee4.tar.gz ingen-cef54205d4a3776822cbf6726fa6cfb2a6e9bee4.tar.bz2 ingen-cef54205d4a3776822cbf6726fa6cfb2a6e9bee4.zip |
Set maximum bundle size to ideal UDP value.
git-svn-id: http://svn.drobilla.net/lad/ingen@483 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/engine/OSCClientSender.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/engine/OSCClientSender.cpp b/src/libs/engine/OSCClientSender.cpp index 7126c67b..1ba9491d 100644 --- a/src/libs/engine/OSCClientSender.cpp +++ b/src/libs/engine/OSCClientSender.cpp @@ -507,8 +507,8 @@ OSCClientSender::new_plugin(string uri, string type_uri, string name) return; // FIXME: size? liblo doesn't export this. - // don't want to exceed max UDP packet size - static const size_t MAX_BUNDLE_SIZE = 32768; // FIXME: best value? + // Don't want to exceed max UDP packet size (1500 bytes) + static const size_t MAX_BUNDLE_SIZE = 1500 - 32*5; lo_message m = lo_message_new(); lo_message_add_string(m, uri.c_str()); |