IBR-DTNSuite
0.10
Main Page
Namespaces
Classes
Files
File List
File Members
IBR-DTNSuite
Namespaces
Classes
Files
File List
daemon
src
api
core
net
routing
epidemic
EpidemicRoutingExtension.cpp
EpidemicRoutingExtension.h
flooding
prophet
BaseRouter.cpp
BaseRouter.h
NeighborDatabase.cpp
NeighborDatabase.h
NeighborDataset.cpp
NeighborDataset.h
NeighborRoutingExtension.cpp
NeighborRoutingExtension.h
NodeHandshake.cpp
NodeHandshake.h
NodeHandshakeEvent.cpp
NodeHandshakeEvent.h
NodeHandshakeExtension.cpp
NodeHandshakeExtension.h
QueueBundleEvent.cpp
QueueBundleEvent.h
RequeueBundleEvent.cpp
RequeueBundleEvent.h
RetransmissionExtension.cpp
RetransmissionExtension.h
RoutingExtension.cpp
RoutingExtension.h
SchedulingBundleIndex.cpp
SchedulingBundleIndex.h
StaticRegexRoute.cpp
StaticRegexRoute.h
StaticRoute.cpp
StaticRoute.h
StaticRouteChangeEvent.cpp
StaticRouteChangeEvent.h
StaticRoutingExtension.cpp
StaticRoutingExtension.h
security
storage
CapsuleWorker.cpp
CapsuleWorker.h
Component.cpp
Component.h
config.h
Configuration.cpp
Configuration.h
Debugger.cpp
Debugger.h
DevNull.cpp
DevNull.h
DTNTPWorker.cpp
DTNTPWorker.h
EchoWorker.cpp
EchoWorker.h
Main.cpp
NativeDaemon.cpp
NativeDaemon.h
ibrcommon
ibrdtn
tools
File Members
EpidemicRoutingExtension.h
Go to the documentation of this file.
1
/*
2
* EpidemicRoutingExtension.h
3
*
4
* Copyright (C) 2011 IBR, TU Braunschweig
5
*
6
* Written-by: Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>
7
*
8
* Licensed under the Apache License, Version 2.0 (the "License");
9
* you may not use this file except in compliance with the License.
10
* You may obtain a copy of the License at
11
*
12
* http://www.apache.org/licenses/LICENSE-2.0
13
*
14
* Unless required by applicable law or agreed to in writing, software
15
* distributed under the License is distributed on an "AS IS" BASIS,
16
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
* See the License for the specific language governing permissions and
18
* limitations under the License.
19
*
20
*/
21
22
#ifndef EPIDEMICROUTINGEXTENSION_H_
23
#define EPIDEMICROUTINGEXTENSION_H_
24
25
#include "
core/Node.h
"
26
#include "
core/AbstractWorker.h
"
27
28
#include "
routing/RoutingExtension.h
"
29
#include "
routing/NeighborDatabase.h
"
30
31
#include <
ibrdtn/data/Block.h
>
32
#include <
ibrdtn/data/SDNV.h
>
33
#include <
ibrdtn/data/BundleString.h
>
34
#include <
ibrdtn/data/ExtensionBlock.h
>
35
36
#include <
ibrcommon/thread/Queue.h
>
37
#include <
ibrcommon/thread/Thread.h
>
38
39
#include <list>
40
#include <queue>
41
42
namespace
dtn
43
{
44
namespace
routing
45
{
46
class
EpidemicRoutingExtension
:
public
RoutingExtension
,
public
ibrcommon::JoinableThread
47
{
48
static
const
std::string TAG;
49
50
public
:
51
EpidemicRoutingExtension
();
52
virtual
~EpidemicRoutingExtension
();
53
54
void
notify
(
const
dtn::core::Event
*evt)
throw
();
55
void
componentUp
()
throw
();
56
void
componentDown
()
throw
();
57
61
virtual
void
requestHandshake
(
const
dtn::data::EID
&,
NodeHandshake
&)
const
;
62
63
protected
:
64
void
run
()
throw
();
65
void
__cancellation
()
throw
();
66
67
private
:
68
class
Task
69
{
70
public
:
71
virtual
~Task() {};
72
virtual
std::string toString() = 0;
73
};
74
75
class
SearchNextBundleTask :
public
Task
76
{
77
public
:
78
SearchNextBundleTask(
const
dtn::data::EID
&eid);
79
virtual
~SearchNextBundleTask();
80
81
virtual
std::string toString();
82
83
const
dtn::data::EID
eid;
84
};
85
89
ibrcommon::Queue<EpidemicRoutingExtension::Task* >
_taskqueue;
90
};
91
}
92
}
93
94
#endif
/* EPIDEMICROUTINGEXTENSION_H_ */
daemon
src
routing
epidemic
EpidemicRoutingExtension.h
Generated on Mon Jul 22 2013 15:16:00 for IBR-DTNSuite by
1.8.3.1