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/shared/OSCSender.hpp | |
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/shared/OSCSender.hpp')
-rw-r--r-- | src/shared/OSCSender.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/shared/OSCSender.hpp b/src/shared/OSCSender.hpp index 1085f2ae..34c5565a 100644 --- a/src/shared/OSCSender.hpp +++ b/src/shared/OSCSender.hpp @@ -18,7 +18,9 @@ #ifndef INGEN_SHARED_OSCSENDER_HPP #define INGEN_SHARED_OSCSENDER_HPP -#include <inttypes.h> +#include <stdbool.h> +#include <stddef.h> + #include <lo/lo.h> namespace Ingen { @@ -26,7 +28,7 @@ namespace Shared { class OSCSender { public: - OSCSender(); + OSCSender(size_t max_packet_size); virtual ~OSCSender() {} lo_address address() const { return _address; } @@ -40,6 +42,7 @@ protected: lo_bundle _bundle; lo_address _address; + size_t _max_packet_size; bool _enabled; }; |