diff options
Diffstat (limited to 'implementation/service_discovery/include/subscription.hpp')
-rw-r--r-- | implementation/service_discovery/include/subscription.hpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/implementation/service_discovery/include/subscription.hpp b/implementation/service_discovery/include/subscription.hpp index 098bccf..c710b9d 100644 --- a/implementation/service_discovery/include/subscription.hpp +++ b/implementation/service_discovery/include/subscription.hpp @@ -1,5 +1,4 @@ -// Copyright (C) 2014 BMW Group -// Author: Lutz Bichler (lutz.bichler@bmw.de) +// Copyright (C) 2014-2015 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -19,28 +18,29 @@ namespace sd { class subscription { public: - subscription(major_version_t _major, ttl_t _ttl, - std::shared_ptr<endpoint> _reliable, - std::shared_ptr<endpoint> _unreliable); - ~subscription(); + subscription(major_version_t _major, ttl_t _ttl, + std::shared_ptr<endpoint> _reliable, + std::shared_ptr<endpoint> _unreliable, + client_t _target); + ~subscription(); - major_version_t get_major() const; - ttl_t get_ttl() const; - void set_ttl(ttl_t _ttl); - std::shared_ptr<endpoint> get_endpoint(bool _reliable) const; - void set_endpoint(std::shared_ptr<endpoint> _endpoint, bool _reliable); + major_version_t get_major() const; + ttl_t get_ttl() const; + void set_ttl(ttl_t _ttl); + std::shared_ptr<endpoint> get_endpoint(bool _reliable) const; + void set_endpoint(std::shared_ptr<endpoint> _endpoint, bool _reliable); - bool is_acknowleged() const; - void set_acknowledged(bool _is_acknowledged); + bool is_acknowleged() const; + void set_acknowledged(bool _is_acknowledged); private: - major_version_t major_; - ttl_t ttl_; + major_version_t major_; + ttl_t ttl_; - std::shared_ptr<endpoint> reliable_; - std::shared_ptr<endpoint> unreliable_; + std::shared_ptr<endpoint> reliable_; + std::shared_ptr<endpoint> unreliable_; - bool is_acknowledged_; + bool is_acknowledged_; }; } // namespace sd |