Added expressInterest overload without interestTemplate
diff --git a/ndn-cpp/NDN.hpp b/ndn-cpp/NDN.hpp
index 5f8aff1..025ece8 100644
--- a/ndn-cpp/NDN.hpp
+++ b/ndn-cpp/NDN.hpp
@@ -43,6 +43,11 @@
*/
void expressInterest(const Name &name, const ptr_lib::shared_ptr<Closure> &closure, const Interest *interestTemplate);
+ void expressInterest(const Name &name, const ptr_lib::shared_ptr<Closure> &closure)
+ {
+ expressInterest(name, closure, 0);
+ }
+
const char *getHost() const { return host_.c_str(); }
unsigned short getPort() const { return port_; }
diff --git a/tests/test-get-async.cpp b/tests/test-get-async.cpp
index 9a83ac2..6524331 100644
--- a/tests/test-get-async.cpp
+++ b/tests/test-get-async.cpp
@@ -46,7 +46,7 @@
shared_ptr<UdpTransport> transport(new UdpTransport());
shared_ptr<MyClosure> closure(new MyClosure());
NDN ndn("E.hub.ndn.ucla.edu", 9695, transport);
- ndn.expressInterest(Name("/ndn/ucla.edu/apps/ndn-js-test/hello.txt/level2/%FD%05%0B%16%7D%95%0E"), closure, 0);
+ ndn.expressInterest(Name("/ndn/ucla.edu/apps/ndn-js-test/hello.txt/level2/%FD%05%0B%16%7D%95%0E"), closure);
// Pump the receive process. This should really be done by a socket listener.
while (!closure->gotContent_)