commit | beb8b7dae9bb8531dcc77a289048fa993b4134ee | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Tue Jul 16 15:49:21 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Tue Jul 16 15:49:21 2013 -0700 |
tree | abfb45efc4ff8b04c8ba7ae85cc7ba0228a8e399 | |
parent | c172be37081652fb3b7ec44eeab13aa92c515616 [diff] [blame] |
Pass host and port to NDN constructor and Transport::connect
diff --git a/ndn-cpp/NDN.cpp b/ndn-cpp/NDN.cpp index 4f7be39..c41f1d7 100644 --- a/ndn-cpp/NDN.cpp +++ b/ndn-cpp/NDN.cpp
@@ -18,7 +18,7 @@ vector<unsigned char> encoding; interest.encode(encoding); - transport_->connect((char *)"E.hub.ndn.ucla.edu", 9695); + transport_->connect(host_.c_str(), port_); transport_->send(&encoding[0], encoding.size()); }