Obaid | 2ea377f | 2014-02-27 19:45:15 -0600 | [diff] [blame] | 1 | /* -*- 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 | |
Obaid | 3f48fe5 | 2014-02-27 21:45:23 -0600 | [diff] [blame] | 7 | #include "nrd.hpp" |
| 8 | |
Obaid | 2ea377f | 2014-02-27 19:45:15 -0600 | [diff] [blame] | 9 | int |
| 10 | main(int argc, char** argv) |
| 11 | { |
Obaid | 3f48fe5 | 2014-02-27 21:45:23 -0600 | [diff] [blame] | 12 | try { |
Yingdi Yu | defb5e4 | 2014-03-31 18:18:09 -0700 | [diff] [blame] | 13 | // TODO: the configFilename should be obtained from command line arguments. |
| 14 | std::string configFilename("nrd.conf"); |
| 15 | |
| 16 | ndn::nrd::Nrd nrd(configFilename); |
Obaid | 3f48fe5 | 2014-02-27 21:45:23 -0600 | [diff] [blame] | 17 | nrd.enableLocalControlHeader(); |
| 18 | nrd.listen(); |
| 19 | } |
| 20 | catch (std::exception& e) { |
| 21 | std::cerr << "ERROR: " << e.what() << std::endl; |
| 22 | } |
Obaid | 2ea377f | 2014-02-27 19:45:15 -0600 | [diff] [blame] | 23 | return 0; |
| 24 | } |