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 | 29c77fe | 2014-03-18 11:29:41 -0700 | [diff] [blame] | 23 | #include <ndn-cpp-dev/util/time.hpp> |
| 24 | #include <ndn-cpp-dev/util/scheduler.hpp> |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 25 | #include <boost/random/mersenne_twister.hpp> |
| 26 | #include <boost/random/uniform_int_distribution.hpp> |
| 27 | #include <map> |
Shuo Chen | 29c77fe | 2014-03-18 11:29:41 -0700 | [diff] [blame] | 28 | #include <algorithm> |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 29 | |
| 30 | namespace repo { |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame] | 31 | |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 32 | using ndn::Face; |
| 33 | using ndn::Name; |
| 34 | using ndn::Interest; |
| 35 | using ndn::KeyChain; |
| 36 | using ndn::Selectors; |
| 37 | using ndn::bind; |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame] | 38 | using ndn::CommandInterestValidator; |
Shuo Chen | 29c77fe | 2014-03-18 11:29:41 -0700 | [diff] [blame] | 39 | using ndn::Scheduler; |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame] | 40 | |
Alexander Afanasyev | b0c78ea | 2014-04-15 18:12:04 -0700 | [diff] [blame^] | 41 | using ndn::shared_ptr; |
| 42 | using ndn::make_shared; |
| 43 | using ndn::enable_shared_from_this; |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame] | 44 | |
Shuo Chen | 29c77fe | 2014-03-18 11:29:41 -0700 | [diff] [blame] | 45 | typedef uint64_t ProcessId; |
| 46 | typedef uint64_t SegmentNo; |
| 47 | |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 48 | } |
| 49 | |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame] | 50 | #endif // REPO_NDN_HANDLE_NDN_HANDLE_COMMON_HPP |