NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
h
i
k
l
n
o
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
f
i
k
l
n
p
q
r
s
t
u
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Enumerations
_
a
c
e
i
r
s
t
v
+
Enumerator
a
c
d
e
f
i
k
l
m
n
p
r
s
u
v
w
+
Related Functions
b
c
d
e
f
g
i
k
l
m
n
o
p
s
v
+
Files
File List
+
File Members
+
All
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
f
g
i
k
l
m
n
p
r
s
t
Typedefs
+
Macros
a
d
e
f
i
l
m
n
o
p
r
s
u
v
▼
ndnSIM
ndnSIM documentation
All Attributes
All GlobalValues
All LogComponents
All TraceSources
Todo List
Deprecated List
Bug List
►
Modules
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
ndn-net-device-transport.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011-2018 Regents of the University of California.
4
*
5
* This file is part of ndnSIM. See AUTHORS for complete list of ndnSIM authors and
6
* contributors.
7
*
8
* ndnSIM is free software: you can redistribute it and/or modify it under the terms
9
* of the GNU General Public License as published by the Free Software Foundation,
10
* either version 3 of the License, or (at your option) any later version.
11
*
12
* ndnSIM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14
* PURPOSE. See the GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License along with
17
* ndnSIM, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
18
**/
19
20
#ifndef NDN_NET_DEVICE_TRANSPORT_HPP
21
#define NDN_NET_DEVICE_TRANSPORT_HPP
22
23
#include "ns3/ndnSIM/model/ndn-common.hpp"
24
#include "ns3/ndnSIM/NFD/daemon/face/transport.hpp"
25
26
#include "ns3/net-device.h"
27
#include "ns3/log.h"
28
#include "ns3/packet.h"
29
#include "ns3/node.h"
30
#include "ns3/pointer.h"
31
32
#include "ns3/point-to-point-net-device.h"
33
#include "ns3/channel.h"
34
35
namespace
ns3
{
36
namespace
ndn
{
37
42
class
NetDeviceTransport
:
public
nfd::face::Transport
43
{
44
public
:
45
NetDeviceTransport
(Ptr<Node> node,
const
Ptr<NetDevice>& netDevice,
46
const
std::string& localUri,
47
const
std::string& remoteUri,
48
::
ndn::nfd::FaceScope
scope = ::
ndn::nfd::FACE_SCOPE_NON_LOCAL
,
49
::
ndn::nfd::FacePersistency
persistency = ::
ndn::nfd::FACE_PERSISTENCY_PERSISTENT
,
50
::
ndn::nfd::LinkType
linkType = ::
ndn::nfd::LINK_TYPE_POINT_TO_POINT
);
51
52
~NetDeviceTransport
();
53
54
Ptr<NetDevice>
55
GetNetDevice
()
const
;
56
57
virtual
ssize_t
58
getSendQueueLength
()
final
;
59
60
private
:
61
virtual
void
62
doClose()
override
;
63
64
virtual
void
65
doSend(
Packet
&& packet)
override
;
66
67
void
68
receiveFromNetDevice(Ptr<NetDevice> device,
69
Ptr<const ns3::Packet> p,
70
uint16_t protocol,
71
const
Address& from,
const
Address& to,
72
NetDevice::PacketType packetType);
73
74
Ptr<NetDevice> m_netDevice;
75
Ptr<Node> m_node;
76
};
77
78
}
// namespace ndn
79
}
// namespace ns3
80
81
#endif // NDN_NULL_TRANSPORT_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::nfd::LinkType
LinkType
Definition:
nfd-constants.hpp:57
ndn::nfd::FACE_SCOPE_NON_LOCAL
face is non-local
Definition:
nfd-constants.hpp:36
ndn::nfd::LINK_TYPE_POINT_TO_POINT
link is point-to-point
Definition:
nfd-constants.hpp:59
ns3::ndn::NetDeviceTransport::getSendQueueLength
virtual ssize_t getSendQueueLength() final
Definition:
ndn-net-device-transport.cpp:86
nfd::face::Transport::Packet
stores a packet along with the remote endpoint
Definition:
transport.hpp:122
ns3::ndn::NetDeviceTransport
ndnSIM-specific transport
Definition:
ndn-net-device-transport.hpp:42
ns3::ndn::NetDeviceTransport::NetDeviceTransport
NetDeviceTransport(Ptr< Node > node, const Ptr< NetDevice > &netDevice, const std::string &localUri, const std::string &remoteUri, ::ndn::nfd::FaceScope scope=::ndn::nfd::FACE_SCOPE_NON_LOCAL, ::ndn::nfd::FacePersistency persistency=::ndn::nfd::FACE_PERSISTENCY_PERSISTENT, ::ndn::nfd::LinkType linkType=::ndn::nfd::LINK_TYPE_POINT_TO_POINT)
Definition:
ndn-net-device-transport.cpp:37
ndn::nfd::FacePersistency
FacePersistency
Definition:
nfd-constants.hpp:45
ndn::nfd::FaceScope
FaceScope
Definition:
nfd-constants.hpp:34
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
ns3::ndn::NetDeviceTransport::GetNetDevice
Ptr< NetDevice > GetNetDevice() const
Definition:
ndn-net-device-transport.cpp:147
ns3::ndn::NetDeviceTransport::~NetDeviceTransport
~NetDeviceTransport()
Definition:
ndn-net-device-transport.cpp:80
nfd::face::Transport
the lower part of a Face
Definition:
transport.hpp:113
ndn::nfd::FACE_PERSISTENCY_PERSISTENT
face is persistent
Definition:
nfd-constants.hpp:47
ndnSIM
model
ndn-net-device-transport.hpp
Generated on Sun Feb 24 2019 22:16:05 for ndnSIM by
1.8.15