IBR-DTNSuite
0.12
Main Page
Namespaces
Classes
Files
File List
File Members
PosixLinkManager.h
Go to the documentation of this file.
1
/*
2
* PosixLinkManager.h
3
*
4
* Created on: 11.10.2012
5
* Author: morgenro
6
*/
7
8
#ifndef POSIXLINKMANAGER_H_
9
#define POSIXLINKMANAGER_H_
10
11
#include "
ibrcommon/link/LinkManager.h
"
12
#include "
ibrcommon/net/vinterface.h
"
13
#include "
ibrcommon/net/vaddress.h
"
14
#include "
ibrcommon/link/LinkMonitor.h
"
15
#include <list>
16
17
namespace
ibrcommon
18
{
19
class
PosixLinkManager
:
public
LinkManager
20
{
21
public
:
22
PosixLinkManager
();
23
virtual
~PosixLinkManager
();
24
25
void
up
()
throw
();
26
void
down
()
throw
();
27
28
const
vinterface
getInterface
(
int
index)
const
;
29
const
std::list<vaddress>
getAddressList
(
const
vinterface
&iface,
const
std::string &scope =
""
);
30
31
virtual
void
addEventListener
(
const
vinterface
&iface,
LinkManager::EventCallback
*cb)
throw
();
32
virtual
void
removeEventListener
(
const
vinterface
&,
LinkManager::EventCallback
*)
throw
();
33
virtual
void
removeEventListener
(
LinkManager::EventCallback
*)
throw
();
34
35
private
:
36
LinkMonitor
_lm;
37
};
38
}
/* namespace ibrcommon */
39
#endif
/* POSIXLINKMANAGER_H_ */
ibrcommon
ibrcommon
link
PosixLinkManager.h
Generated on Thu Mar 27 2014 09:26:20 for IBR-DTNSuite by
1.8.4