nrd: Basic version of nrd
refs #1324
Change-Id: I797922e8367e0473bb8ed39840e44d038295f148
diff --git a/src/main.cpp b/src/main.cpp
index 0ec8e7a..ce89f3f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4,8 +4,18 @@
* See COPYING for copyright and distribution information.
*/
+#include "nrd.hpp"
+
int
main(int argc, char** argv)
{
+ try {
+ ndn::nrd::Nrd nrd;
+ nrd.enableLocalControlHeader();
+ nrd.listen();
+ }
+ catch (std::exception& e) {
+ std::cerr << "ERROR: " << e.what() << std::endl;
+ }
return 0;
}