Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
Alexander Afanasyev | e1e6f2a | 2014-04-25 11:28:12 -0700 | [diff] [blame^] | 3 | * Copyright (c) 2014, Regents of the University of California. |
| 4 | * |
| 5 | * This file is part of NDN repo-ng (Next generation of NDN repository). |
| 6 | * See AUTHORS.md for complete list of repo-ng authors and contributors. |
| 7 | * |
| 8 | * repo-ng is free software: you can redistribute it and/or modify it under the terms |
| 9 | * of the GNU General Public License as published by the Free Software Foundation, |
| 10 | * either version 3 of the License, or (at your option) any later version. |
| 11 | * |
| 12 | * repo-ng is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 13 | * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 14 | * PURPOSE. See the GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License along with |
| 17 | * repo-ng, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 18 | */ |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame] | 19 | |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 20 | #ifndef REPO_NDN_HANDLE_NDN_HANDLE_COMMON_HPP |
| 21 | #define REPO_NDN_HANDLE_NDN_HANDLE_COMMON_HPP |
| 22 | |
| 23 | |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame] | 24 | #include "../storage/storage-handle.hpp" |
| 25 | #include "../helpers/repo-command-response.hpp" |
| 26 | #include "../helpers/repo-command-parameter.hpp" |
| 27 | |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 28 | #include <cstdlib> |
| 29 | #include <sstream> |
| 30 | #include <iostream> |
| 31 | #include <time.h> |
| 32 | #include <unistd.h> |
Alexander Afanasyev | e291caf | 2014-04-25 11:17:36 -0700 | [diff] [blame] | 33 | #include <ndn-cxx/face.hpp> |
| 34 | #include <ndn-cxx/security/key-chain.hpp> |
| 35 | #include <ndn-cxx/util/command-interest-validator.hpp> |
| 36 | #include <ndn-cxx/util/time.hpp> |
| 37 | #include <ndn-cxx/util/scheduler.hpp> |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 38 | #include <boost/random/mersenne_twister.hpp> |
| 39 | #include <boost/random/uniform_int_distribution.hpp> |
| 40 | #include <map> |
Shuo Chen | 29c77fe | 2014-03-18 11:29:41 -0700 | [diff] [blame] | 41 | #include <algorithm> |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 42 | |
| 43 | namespace repo { |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame] | 44 | |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 45 | using ndn::Face; |
| 46 | using ndn::Name; |
| 47 | using ndn::Interest; |
| 48 | using ndn::KeyChain; |
| 49 | using ndn::Selectors; |
| 50 | using ndn::bind; |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame] | 51 | using ndn::CommandInterestValidator; |
Shuo Chen | 29c77fe | 2014-03-18 11:29:41 -0700 | [diff] [blame] | 52 | using ndn::Scheduler; |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame] | 53 | |
Alexander Afanasyev | b0c78ea | 2014-04-15 18:12:04 -0700 | [diff] [blame] | 54 | using ndn::shared_ptr; |
| 55 | using ndn::make_shared; |
| 56 | using ndn::enable_shared_from_this; |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame] | 57 | |
Shuo Chen | 29c77fe | 2014-03-18 11:29:41 -0700 | [diff] [blame] | 58 | typedef uint64_t ProcessId; |
| 59 | typedef uint64_t SegmentNo; |
| 60 | |
Shuo Chen | 9c2477f | 2014-03-13 15:01:06 -0700 | [diff] [blame] | 61 | } |
| 62 | |
Shuo Chen | ba793e9 | 2014-03-17 17:17:16 -0700 | [diff] [blame] | 63 | #endif // REPO_NDN_HANDLE_NDN_HANDLE_COMMON_HPP |