NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
simple-limits.h
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011 University of California, Los Angeles
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
19
*/
20
21
22
#ifndef NDNSIM_SIMPLE_LIMITS_H
23
#define NDNSIM_SIMPLE_LIMITS_H
24
25
#include "ns3/event-id.h"
26
#include "best-route.h"
27
28
namespace
ns3 {
29
namespace
ndn {
30
namespace
fw {
31
36
class
SimpleLimits
:
37
public
BestRoute
38
{
39
private
:
40
typedef
BestRoute
super
;
41
42
public
:
43
static
TypeId
44
GetTypeId
();
45
49
SimpleLimits
();
50
51
virtual
void
52
WillEraseTimedOutPendingInterest
(Ptr<pit::Entry> pitEntry);
53
54
protected
:
55
virtual
bool
56
TrySendOutInterest
(Ptr<Face> inFace,
57
Ptr<Face> outFace,
58
Ptr<const InterestHeader> header,
59
Ptr<const Packet> origPacket,
60
Ptr<pit::Entry> pitEntry);
61
62
virtual
void
63
WillSatisfyPendingInterest (Ptr<Face> inFace,
64
Ptr<pit::Entry> pitEntry);
65
66
private
:
67
// from Object
68
virtual
void
69
NotifyNewAggregate ();
70
71
virtual
void
72
DoDispose ();
73
};
74
75
76
}
// namespace fw
77
}
// namespace ndn
78
}
// namespace ns3
79
80
#endif // NDNSIM_SIMPLE_LIMITS_H
ndnSIM
model
fw
simple-limits.h
Generated on Wed Oct 24 2012 22:54:10 for ndnSIM by
1.8.1.1