commit | f62382a6c1b8e60f0b078161e8dc6b82b21c2a45 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Wed Aug 21 16:33:39 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Wed Aug 21 16:33:39 2013 -0700 |
tree | f9dd68df3b9583865ca24a2fe31b374ab96670dd | |
parent | e60caeb90e6ce7bc24bd91d1b36e920cb7a17574 [diff] |
Added Interest constructor for name and interestLifetimeMilliseconds
diff --git a/ndn-cpp/interest.hpp b/ndn-cpp/interest.hpp index 910dd53..e4aeeb1 100644 --- a/ndn-cpp/interest.hpp +++ b/ndn-cpp/interest.hpp
@@ -141,10 +141,16 @@ { } + Interest(const Name &name, double interestLifetimeMilliseconds) + : name_(name) + { + construct(); + interestLifetimeMilliseconds_ = interestLifetimeMilliseconds; + } + Interest(const Name &name) : name_(name) { - name_ = name; construct(); }