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
>
29
#include <
ndn-cxx/encoding/block.hpp
>
30
#include <
ndn-cxx/signature.hpp
>
31
#include <
ndn-cxx/signature-info.hpp
>
32
#include <
ndn-cxx/name.hpp
>
33
#include <
ndn-cxx/data.hpp
>
34
#include <
ndn-cxx/security/key-chain.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
46
using ::ndn::Name
;
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
59
using
std::shared_ptr;
60
using
std::make_shared;
61
62
using ::ndn::Interest
;
63
using ::ndn::Data
;
64
using ::ndn::KeyLocator
;
65
using ::ndn::Signature;
66
using ::ndn::SignatureInfo
;
67
using ::ndn::Block;
68
using ::ndn::KeyChain
;
69
70
using ::nfd::Face
;
71
using ::ndn::FaceUri;
72
73
#ifndef DOXYGEN
74
// For python bindings
75
namespace
nfd
= ::nfd;
76
#endif // DOXYGEN
77
78
using ::ndn::make_unique;
79
80
}
// namespace ndn
81
}
// namespace ns3
82
83
namespace
nfd
{
84
namespace
face {
85
86
inline
std::ostream&
87
operator<<
(std::ostream& os,
const
Face
& face)
88
{
89
os << face.
getLocalUri
();
90
return
os;
91
}
92
93
}
// namespace face
94
}
// namespace nfd
95
96
#endif // NDNSIM_NDN_COMMON_H
signature-info.hpp
ndn::tlv::Interest
@ Interest
Definition:
tlv.hpp:65
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-app-link-service.cpp:32
key-chain.hpp
block.hpp
name.hpp
nfd::face::Face::getLocalUri
FaceUri getLocalUri() const
Definition:
face.hpp:238
nfd::face::operator<<
std::ostream & operator<<(std::ostream &os, const Face &face)
Definition:
ndn-common.hpp:87
ns3::ndn::Name
Name
Definition:
ndn-common.cpp:25
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
signature.hpp
nfd::face::Face
generalization of a network interface
Definition:
face.hpp:53
ndn::time
Definition:
time-custom-clock.hpp:28
face.hpp
interest.hpp
Face
ndn Face
Definition:
face-impl.hpp:41
ndn::tlv::Data
@ Data
Definition:
tlv.hpp:66
data.hpp
ndn::tlv::KeyLocator
@ KeyLocator
Definition:
tlv.hpp:86
ndn::name
Definition:
name-component-types.hpp:33
ndn::security::v2::KeyChain
ndn security v2 KeyChain
Definition:
key-chain.cpp:68
ndn::lp
Definition:
cache-policy.cpp:28
time.hpp
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::tlv::SignatureInfo
@ SignatureInfo
Definition:
tlv.hpp:80
ndnSIM
model
ndn-common.hpp
Generated on Mon Jun 1 2020 22:32:14 for ndnSIM by
1.8.18