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 | */ |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame^] | 6 | |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 7 | #ifndef REPO_NDN_HANDLE_NDN_HANDLE_COMMON_HPP |
| 8 | #define REPO_NDN_HANDLE_NDN_HANDLE_COMMON_HPP |
| 9 | |
| 10 | |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame^] | 11 | #include "../storage/storage-handle.hpp" |
| 12 | #include "../helpers/repo-command-response.hpp" |
| 13 | #include "../helpers/repo-command-parameter.hpp" |
| 14 | |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 15 | #include <cstdlib> |
| 16 | #include <sstream> |
| 17 | #include <iostream> |
| 18 | #include <time.h> |
| 19 | #include <unistd.h> |
| 20 | #include <ndn-cpp-dev/face.hpp> |
| 21 | #include <ndn-cpp-dev/security/key-chain.hpp> |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame^] | 22 | #include <ndn-cpp-dev/util/command-interest-validator.hpp> |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 23 | #include <boost/random/mersenne_twister.hpp> |
| 24 | #include <boost/random/uniform_int_distribution.hpp> |
| 25 | #include <map> |
| 26 | |
| 27 | #define RETRY_TIMEOUT 3 |
| 28 | #define DEFAULT_CREDIT 12 |
| 29 | #define NOEND_TIMEOUT 10000 |
| 30 | |
| 31 | namespace repo { |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame^] | 32 | |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 33 | using ndn::Face; |
| 34 | using ndn::Name; |
| 35 | using ndn::Interest; |
| 36 | using ndn::KeyChain; |
| 37 | using ndn::Selectors; |
| 38 | using ndn::bind; |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame^] | 39 | using ndn::CommandInterestValidator; |
| 40 | |
| 41 | using boost::shared_ptr; |
| 42 | |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 43 | } |
| 44 | |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame^] | 45 | #endif // REPO_NDN_HANDLE_NDN_HANDLE_COMMON_HPP |