IBR-DTNSuite  0.12
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 
13 #include "ibrcommon/net/vaddress.h"
15 #include <list>
16 
17 namespace ibrcommon
18 {
20  {
21  public:
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_ */