IBR-DTNSuite
0.12
Main Page
Namespaces
Classes
Files
File List
File Members
IBR-DTNSuite
Namespaces
Classes
Files
File List
daemon
ibrcommon
ibrcommon
data
link
LinkEvent.cpp
LinkEvent.h
LinkManager.cpp
LinkManager.h
LinkMonitor.cpp
LinkMonitor.h
NetLinkManager.cpp
NetLinkManager.h
nl802154.h
nl_policy.c
PosixLinkManager.cpp
PosixLinkManager.h
Win32LinkManager.cpp
Win32LinkManager.h
net
ssl
thread
xml
appstreambuf.cpp
appstreambuf.h
config.h
Exceptions.h
ibrcommon.h
Iterator.h
Logger.cpp
Logger.h
MonotonicClock.cpp
MonotonicClock.h
refcnt_ptr.h
SyslogStream.cpp
SyslogStream.h
TimeMeasurement.cpp
TimeMeasurement.h
TLSExceptions.h
ibrdtn
tools
File Members
LinkEvent.h
Go to the documentation of this file.
1
/*
2
* LinkEvent.h
3
*
4
* Created on: 11.10.2012
5
* Author: morgenro
6
*/
7
8
#ifndef LINKEVENT_H_
9
#define LINKEVENT_H_
10
11
#include "
ibrcommon/net/vinterface.h
"
12
#include "
ibrcommon/net/vaddress.h
"
13
14
namespace
ibrcommon
15
{
16
class
LinkEvent
17
{
18
public
:
19
enum
Action
20
{
21
ACTION_UNKOWN
,
22
ACTION_LINK_RUNNING
,
23
ACTION_LINK_UP
,
24
ACTION_LINK_DOWN
,
25
ACTION_ADDRESS_REMOVED
,
26
ACTION_ADDRESS_ADDED
27
};
28
29
LinkEvent
(
Action
action,
const
vinterface
&iface,
const
vaddress
&addr);
30
virtual
~LinkEvent
();
31
32
virtual
const
vinterface
&
getInterface
()
const
;
33
virtual
const
vaddress
&
getAddress
()
const
;
34
virtual
Action
getAction
()
const
;
35
36
virtual
std::string
toString
()
const
;
37
38
private
:
39
Action
_action;
40
const
vinterface
_iface;
41
const
vaddress
_addr;
42
};
43
44
}
/* namespace ibrcommon */
45
#endif
/* LINKEVENT_H_ */
ibrcommon
ibrcommon
link
LinkEvent.h
Generated on Thu Mar 27 2014 09:26:20 for IBR-DTNSuite by
1.8.4