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-info.hpp
>
31
#include <
ndn-cxx/name.hpp
>
32
#include <
ndn-cxx/data.hpp
>
33
#include <
ndn-cxx/security/key-chain.hpp
>
34
35
#include <
ndn-cxx/util/time.hpp
>
36
37
#include "
NFD/daemon/face/face.hpp
"
38
39
namespace
nfd
{
40
}
41
42
namespace
ns3
{
43
namespace
ndn
{
44
45
using ::ndn::Name
;
46
namespace
name
= ::ndn::name;
47
48
ATTRIBUTE_HELPER_HEADER(
Name
);
49
50
namespace
time
{
51
using namespace
::
ndn::time
;
52
}
53
54
namespace
lp
{
55
using namespace
::
ndn::lp
;
56
}
57
58
using
std::shared_ptr;
59
using
std::make_shared;
60
61
using ::ndn::Interest
;
62
using ::ndn::Data
;
63
using ::ndn::KeyLocator
;
64
using ::ndn::SignatureInfo
;
65
using ::ndn::Block;
66
using ::ndn::KeyChain
;
67
68
using ::nfd::Face
;
69
using ::ndn::FaceUri;
70
71
#ifndef DOXYGEN
72
// For python bindings
73
namespace
nfd
= ::nfd;
74
#endif // DOXYGEN
75
76
using ::ndn::make_unique;
77
78
}
// namespace ndn
79
}
// namespace ns3
80
81
namespace
nfd
{
82
namespace
face {
83
84
inline
std::ostream&
85
operator<<
(std::ostream& os,
const
Face
& face)
86
{
87
os << face.getLocalUri();
88
return
os;
89
}
90
91
}
// namespace face
92
}
// namespace nfd
93
94
#endif // NDNSIM_NDN_COMMON_H
face.hpp
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::tlv::KeyLocator
Definition:
tlv.hpp:88
time.hpp
ndn::security::v2::KeyChain
ndn security KeyChain
Definition:
key-chain.cpp:70
key-chain.hpp
ndn::tlv::Data
Definition:
tlv.hpp:66
ndn::time
Definition:
time-custom-clock.hpp:28
Face
ndn Face
Definition:
face-impl.hpp:42
ndn::tlv::SignatureInfo
Definition:
tlv.hpp:82
nfd::operator<<
std::ostream & operator<<(std::ostream &os, const Network &network)
Definition:
network.cpp:79
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:39
ns3::ndn::Name
Name
Definition:
ndn-common.cpp:25
data.hpp
signature-info.hpp
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-app-link-service.cpp:32
ndn::tlv::Interest
Definition:
tlv.hpp:65
interest.hpp
block.hpp
ndn::lp
Definition:
cache-policy.cpp:28
name.hpp
ndn::name
Definition:
name-component-types.hpp:33
ndnSIM
model
ndn-common.hpp
Generated on Fri May 6 2022 12:34:10 for ndnSIM by
1.8.13