00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __NODEMANAGER_H__
00012 #define __NODEMANAGER_H__
00013
00014 #include <omnetpp.h>
00015 #include <platdep/sockets.h>
00016 #include <netinet/in.h>
00017 #include <arpa/inet.h>
00018 #include <Ieee802Ctrl_m.h>
00019 #include <Ieee80211Mac.h>
00020 #include <MACAddress.h>
00021 #include "PMTypes.h"
00022 #include "MsgHandler.h"
00023
00025 class NodeManager : public cSimpleModule
00026 {
00027 public:
00028 NodeManager();
00029 ~NodeManager();
00030
00031 void addNode(registrationMsg *regMsg);
00032 void removeNode(cModule *host);
00033 cModule* isRegistered(const host_id *hostId);
00034
00035 private:
00036 void handleParameterChange(const char *parname);
00037 };
00038
00039 #endif // __NODEMANAGER_H__