NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ndn-app-link-service.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#ifndef NDN_APP_LINK_SERVICE_HPP
21
#define NDN_APP_LINK_SERVICE_HPP
22
23
#include "ns3/ndnSIM/model/ndn-common.hpp"
24
#include "ns3/ndnSIM/NFD/daemon/face/link-service.hpp"
25
26
namespace
ns3
{
27
28
class
Packet;
29
class
Node;
30
31
namespace
ndn
{
32
33
class
App
;
34
41
class
AppLinkService
:
public
nfd::face::LinkService
42
{
43
public
:
47
AppLinkService
(Ptr<App> app);
48
49
virtual
~AppLinkService
();
50
51
public
:
52
void
53
onReceiveInterest
(
const
Interest
& interest);
54
55
void
56
onReceiveData
(
const
Data
& data);
57
58
void
59
onReceiveNack
(
const
lp::Nack
& nack);
60
61
private
:
62
virtual
void
63
doSendInterest(
const
Interest
& interest)
override
;
64
65
virtual
void
66
doSendData(
const
Data
& data)
override
;
67
68
virtual
void
69
doSendNack(
const
lp::Nack
& nack)
override
;
70
71
virtual
void
72
doReceivePacket(
nfd::face::Transport::Packet
&& packet)
override
73
{
74
// does nothing (all operations for now handled by LinkService)
75
BOOST_ASSERT(
false
);
76
}
77
78
private
:
79
Ptr<Node> m_node;
80
Ptr<App> m_app;
81
};
82
83
}
// namespace ndn
84
}
// namespace ns3
85
86
#endif // NDN_APP_LINK_SERVICE_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ns3::ndn::AppLinkService
Implementation of LinkService for ndnSIM application.
Definition:
ndn-app-link-service.hpp:41
nfd::face::LinkService
the upper part of a Face
Definition:
link-service.hpp:73
App
ndn App
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-app.cpp:29
ndn::tlv::Interest
Definition:
tlv.hpp:64
nfd::face::Transport::Packet
stores a packet along with the remote endpoint
Definition:
transport.hpp:113
ns3::ndn::AppLinkService::onReceiveInterest
void onReceiveInterest(const Interest &interest)
Definition:
ndn-app-link-service.cpp:79
ns3::ndn::AppLinkService::onReceiveData
void onReceiveData(const Data &data)
Definition:
ndn-app-link-service.cpp:85
ndn::lp::Nack
represents a Network Nack
Definition:
nack.hpp:40
ns3::ndn::AppLinkService::AppLinkService
AppLinkService(Ptr< App > app)
Default constructor.
Definition:
ndn-app-link-service.cpp:35
ns3::ndn::AppLinkService::onReceiveNack
void onReceiveNack(const lp::Nack &nack)
Definition:
ndn-app-link-service.cpp:91
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
ndn::tlv::Data
Definition:
tlv.hpp:65
ns3::ndn::AppLinkService::~AppLinkService
virtual ~AppLinkService()
Definition:
ndn-app-link-service.cpp:44
ndnSIM
model
ndn-app-link-service.hpp
Generated on Thu Nov 2 2017 03:30:28 for ndnSIM by
1.8.11