diff options
author | Lutz Bichler <Lutz.Bichler@bmw.de> | 2014-07-22 08:16:24 +0200 |
---|---|---|
committer | Lutz Bichler <Lutz.Bichler@bmw.de> | 2014-07-22 08:16:24 +0200 |
commit | 0e0b33be1b7d07842b8afd749631b1c8967733a1 (patch) | |
tree | 2f8f64150f43255eab086107053073667200cc1c /interface | |
parent | e9daa9eaecf84aa69b7c643cc3820eb8f295dc7b (diff) | |
download | vSomeIP-0e0b33be1b7d07842b8afd749631b1c8967733a1.tar.gz |
Fixed handling of initial delay. The uniform_distribution-template of
boost.random requires the values to be signed.
Introduced default values for minimum and maximum initial delay. These
are configurable at (library) compile time in "defines.hpp".
Adapted configuration files to enable service discovery.
Diffstat (limited to 'interface')
-rw-r--r-- | interface/vsomeip/configuration.hpp | 4 | ||||
-rw-r--r-- | interface/vsomeip/defines.hpp | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/interface/vsomeip/configuration.hpp b/interface/vsomeip/configuration.hpp index 00635b7..30435ad 100644 --- a/interface/vsomeip/configuration.hpp +++ b/interface/vsomeip/configuration.hpp @@ -46,8 +46,8 @@ public: virtual std::set< std::string > get_servicegroups() const = 0; virtual bool is_local_servicegroup(const std::string &_name) const = 0; - virtual uint32_t get_min_initial_delay(const std::string &_name) const = 0; - virtual uint32_t get_max_initial_delay(const std::string &_name) const = 0; + virtual int32_t get_min_initial_delay(const std::string &_name) const = 0; + virtual int32_t get_max_initial_delay(const std::string &_name) const = 0; virtual uint32_t get_repetition_base_delay(const std::string &_name) const = 0; virtual uint8_t get_repetition_max(const std::string &_name) const = 0; virtual uint32_t get_cyclic_offer_delay(const std::string &_name) const = 0; diff --git a/interface/vsomeip/defines.hpp b/interface/vsomeip/defines.hpp index e8442f5..dc2f302 100644 --- a/interface/vsomeip/defines.hpp +++ b/interface/vsomeip/defines.hpp @@ -15,7 +15,6 @@ #define VSOMEIP_PROTOCOL_VERSION 0x1 - #define VSOMEIP_MAX_LOCAL_MESSAGE_SIZE 32768 #define VSOMEIP_MAX_TCP_MESSAGE_SIZE 4095 #define VSOMEIP_MAX_UDP_MESSAGE_SIZE 1446 @@ -40,4 +39,7 @@ #define VSOMEIP_MESSAGE_TYPE_POS 14 #define VSOMEIP_RETURN_CODE_POS 15 +#define VSOMEIP_DEFAULT_MIN_INITIAL_DELAY 0 +#define VSOMEIP_DEFAULT_MAX_INITIAL_DELAY 3000 + #endif // VSOMEIP_DEFINES_HPP |