blob: f178d53319bb4158fe33687b4479f5accc3e7b24 [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 */
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
26namespace repo {
27using ndn::Face;
28using ndn::Name;
29using ndn::Interest;
30using ndn::KeyChain;
31using ndn::Selectors;
32using ndn::bind;
33}
34
35#endif