IBR-DTNSuite
0.12
Main Page
Namespaces
Classes
Files
File List
File Members
IBR-DTNSuite
Namespaces
Classes
Files
File List
daemon
src
api
core
net
routing
epidemic
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
NTService.cpp
ibrcommon
ibrdtn
tools
File Members
RoutingExtension.h
Go to the documentation of this file.
1
/*
2
* RoutingExtension.h
3
*
4
* Copyright (C) 2013 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 ROUTINGEXTENSION_H_
23
#define ROUTINGEXTENSION_H_
24
25
#include "
routing/NeighborDatabase.h
"
26
#include "
routing/NodeHandshake.h
"
27
#include "
core/Event.h
"
28
#include <
ibrdtn/data/BundleID.h
>
29
#include <
ibrdtn/data/EID.h
>
30
31
namespace
dtn
32
{
33
namespace
routing
34
{
35
class
BaseRouter;
36
37
class
RoutingExtension
38
{
39
static
const
std::string TAG;
40
41
public
:
42
RoutingExtension
();
43
virtual
~RoutingExtension
() = 0;
44
49
virtual
void
eventDataChanged
(
const
dtn::data::EID
&peer)
throw
() { };
50
54
virtual
void
eventTransferCompleted
(
const
dtn::data::EID
&peer,
const
dtn::data::MetaBundle
&meta)
throw
() { };
55
59
virtual
void
eventBundleQueued
(
const
dtn::data::EID
&peer,
const
dtn::data::MetaBundle
&meta)
throw
() { };
60
61
62
virtual
void
componentUp
() throw () = 0;
63
virtual
void
componentDown
() throw () = 0;
64
65
enum
CALLBACK_ACTION
66
{
67
ROUTE_CALLBACK_FORWARDED
= 0,
68
ROUTE_CALLBACK_ABORTED
= 1,
69
ROUTE_CALLBACK_REJECTED
= 2,
70
ROUTE_CALLBACK_DELETED
= 3
71
};
72
79
virtual
void
requestHandshake
(
const
dtn::data::EID
&,
NodeHandshake
&)
const
{ };
80
88
virtual
void
responseHandshake
(
const
dtn::data::EID
&,
const
NodeHandshake
&,
NodeHandshake
&) { };
89
95
virtual
void
processHandshake
(
const
dtn::data::EID
&,
NodeHandshake
&) { };
96
103
void
transferTo
(
const
dtn::data::EID
&destination,
const
dtn::data::MetaBundle
&meta);
104
105
protected
:
106
BaseRouter
&
operator*
();
107
};
108
}
/* namespace routing */
109
}
/* namespace dtn */
110
#endif
/* ROUTINGEXTENSION_H_ */
daemon
src
routing
RoutingExtension.h
Generated on Thu Mar 27 2014 09:26:20 for IBR-DTNSuite by
1.8.4