IBR-DTNSuite
0.12
Main Page
Namespaces
Classes
Files
File List
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