blob: e360e5de46f3700b41d9a10f1348f54cfb8e704a [file] [log] [blame]
Obaid2ea377f2014-02-27 19:45:15 -06001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (C) 2014 Named Data Networking Project
4 * See COPYING for copyright and distribution information.
5 */
6
Obaid3f48fe52014-02-27 21:45:23 -06007#include "nrd.hpp"
8
Obaid2ea377f2014-02-27 19:45:15 -06009int
10main(int argc, char** argv)
11{
Obaid3f48fe52014-02-27 21:45:23 -060012 try {
Yingdi Yudefb5e42014-03-31 18:18:09 -070013 // TODO: the configFilename should be obtained from command line arguments.
14 std::string configFilename("nrd.conf");
15
16 ndn::nrd::Nrd nrd(configFilename);
Obaid3f48fe52014-02-27 21:45:23 -060017 nrd.enableLocalControlHeader();
18 nrd.listen();
19 }
20 catch (std::exception& e) {
21 std::cerr << "ERROR: " << e.what() << std::endl;
22 }
Obaid2ea377f2014-02-27 19:45:15 -060023 return 0;
24}