Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame^] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2014 Regents of the University of California. |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | #ifndef REPO_NDN_HANDLE_NDN_HANDLE_COMMON_HPP |
| 7 | #define REPO_NDN_HANDLE_NDN_HANDLE_COMMON_HPP |
| 8 | |
| 9 | |
| 10 | #include <cstdlib> |
| 11 | #include <sstream> |
| 12 | #include <iostream> |
| 13 | #include <time.h> |
| 14 | #include <unistd.h> |
| 15 | #include <ndn-cpp-dev/face.hpp> |
| 16 | #include <ndn-cpp-dev/security/key-chain.hpp> |
| 17 | #include "../storage/storage-handle.hpp" |
| 18 | #include <boost/random/mersenne_twister.hpp> |
| 19 | #include <boost/random/uniform_int_distribution.hpp> |
| 20 | #include <map> |
| 21 | |
| 22 | #define RETRY_TIMEOUT 3 |
| 23 | #define DEFAULT_CREDIT 12 |
| 24 | #define NOEND_TIMEOUT 10000 |
| 25 | |
| 26 | namespace repo { |
| 27 | using ndn::Face; |
| 28 | using ndn::Name; |
| 29 | using ndn::Interest; |
| 30 | using ndn::KeyChain; |
| 31 | using ndn::Selectors; |
| 32 | using ndn::bind; |
| 33 | } |
| 34 | |
| 35 | #endif |