NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn-common.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20 #ifndef NDNSIM_NDN_COMMON_H
21 #define NDNSIM_NDN_COMMON_H
22 
23 #include "ns3/nstime.h"
24 #include "ns3/simulator.h"
25 #include "ns3/attribute.h"
26 #include "ns3/attribute-helper.h"
27 
28 #include <ndn-cxx/interest.hpp>
30 #include <ndn-cxx/signature.hpp>
32 #include <ndn-cxx/name.hpp>
33 #include <ndn-cxx/data.hpp>
35 
36 #include <ndn-cxx/util/time.hpp>
37 
38 #include "NFD/daemon/face/face.hpp"
39 
40 namespace nfd {
41 }
42 
43 namespace ns3 {
44 namespace ndn {
45 
47 namespace name = ::ndn::name;
48 
49 ATTRIBUTE_HELPER_HEADER(Name);
50 
51 namespace time {
52 using namespace ::ndn::time;
53 }
54 
55 namespace lp {
56 using namespace ::ndn::lp;
57 }
58 
60 
61 using std::shared_ptr;
62 using std::make_shared;
63 
67 using ::ndn::Signature;
69 using ::ndn::Block;
71 
73 using ::ndn::FaceUri;
74 
75 #ifndef DOXYGEN
76 // For python bindings
77 namespace nfd = ::nfd;
78 #endif // DOXYGEN
79 
80 using ::ndn::make_unique;
81 
82 } // namespace ndn
83 } // namespace ns3
84 
85 namespace nfd {
86 namespace face {
87 
88 inline std::ostream&
89 operator<<(std::ostream& os, const Face& face)
90 {
91  os << face.getLocalUri();
92  return os;
93 }
94 
95 } // namespace face
96 } // namespace nfd
97 
98 #endif // NDNSIM_NDN_COMMON_H
Copyright (c) 2011-2015 Regents of the University of California.
generalization of a network interface
Definition: face.hpp:67
std::ostream & operator<<(std::ostream &os, const Face &face)
Definition: ndn-common.hpp:89
FaceUri getLocalUri() const
Definition: face.hpp:257
ndn Face
Definition: face-impl.hpp:42
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
Copyright (c) 2011-2015 Regents of the University of California.
ndn security v2 KeyChain
Definition: key-chain.cpp:69