commit | 1242b1fee775f9f91cb7710533d23953c37e8cb7 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Wed Jul 31 11:02:00 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Wed Jul 31 11:02:00 2013 -0700 |
tree | a69393a50d0ddfa5e3f6a33730e269910498e5e4 | |
parent | b7d059d578a477613bd7b22cc671763fdf2f2e94 [diff] |
In the constructor, default port to 9595
diff --git a/ndn-cpp/NDN.hpp b/ndn-cpp/NDN.hpp index c631340..5f8aff1 100644 --- a/ndn-cpp/NDN.hpp +++ b/ndn-cpp/NDN.hpp
@@ -26,6 +26,11 @@ : host_(host), port_(port), transport_(new UdpTransport()) { } + + NDN(const char *host) + : host_(host), port_(9695), transport_(new UdpTransport()) + { + } /** * Encode name as an Interest. If interestTemplate is not 0, use its interest selectors.