blob: 4f6ba670eec5e43fd8d631b1775ef667eb1d6832 [file] [log] [blame]
Shuo Chen9c2477f2014-03-13 15:01:06 -07001/* -*- 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 Chenba793e92014-03-17 17:17:16 -07006
Shuo Chen9c2477f2014-03-13 15:01:06 -07007#ifndef REPO_NDN_HANDLE_NDN_HANDLE_COMMON_HPP
8#define REPO_NDN_HANDLE_NDN_HANDLE_COMMON_HPP
9
10
Shuo Chenba793e92014-03-17 17:17:16 -070011#include "../storage/storage-handle.hpp"
12#include "../helpers/repo-command-response.hpp"
13#include "../helpers/repo-command-parameter.hpp"
14
Shuo Chen9c2477f2014-03-13 15:01:06 -070015#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 Chenba793e92014-03-17 17:17:16 -070022#include <ndn-cpp-dev/util/command-interest-validator.hpp>
Shuo Chen29c77fe2014-03-18 11:29:41 -070023#include <ndn-cpp-dev/util/time.hpp>
24#include <ndn-cpp-dev/util/scheduler.hpp>
Shuo Chen9c2477f2014-03-13 15:01:06 -070025#include <boost/random/mersenne_twister.hpp>
26#include <boost/random/uniform_int_distribution.hpp>
27#include <map>
Shuo Chen29c77fe2014-03-18 11:29:41 -070028#include <algorithm>
Shuo Chen9c2477f2014-03-13 15:01:06 -070029
30namespace repo {
Shuo Chenba793e92014-03-17 17:17:16 -070031
Shuo Chen9c2477f2014-03-13 15:01:06 -070032using ndn::Face;
33using ndn::Name;
34using ndn::Interest;
35using ndn::KeyChain;
36using ndn::Selectors;
37using ndn::bind;
Shuo Chenba793e92014-03-17 17:17:16 -070038using ndn::CommandInterestValidator;
Shuo Chen29c77fe2014-03-18 11:29:41 -070039using ndn::Scheduler;
Shuo Chenba793e92014-03-17 17:17:16 -070040
Alexander Afanasyevb0c78ea2014-04-15 18:12:04 -070041using ndn::shared_ptr;
42using ndn::make_shared;
43using ndn::enable_shared_from_this;
Shuo Chenba793e92014-03-17 17:17:16 -070044
Shuo Chen29c77fe2014-03-18 11:29:41 -070045typedef uint64_t ProcessId;
46typedef uint64_t SegmentNo;
47
Shuo Chen9c2477f2014-03-13 15:01:06 -070048}
49
Shuo Chenba793e92014-03-17 17:17:16 -070050#endif // REPO_NDN_HANDLE_NDN_HANDLE_COMMON_HPP