Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

SimpleArp.h

00001 /* -*- mode:c++ -*- ********************************************************
00002  * file:        SimpleArp.h
00003  *
00004  * author:      Daniel Willkomm
00005  *
00006  * copyright:   (C) 2005 Telecommunication Networks Group (TKN) at
00007  *              Technische Universitaet Berlin, Germany.
00008  *
00009  *              This program is free software; you can redistribute it
00010  *              and/or modify it under the terms of the GNU General Public
00011  *              License as published by the Free Software Foundation; either
00012  *              version 2 of the License, or (at your option) any later
00013  *              version.
00014  *              For further information see file COPYING
00015  *              in the top level directory
00016  ***************************************************************************
00017  * part of:     framework implementation developed by tkn
00018  ***************************************************************************/
00019 
00020 #ifndef SIMPLEARP_H
00021 #define SIMPLEARP_H
00022 
00023 #include <omnetpp.h>
00024 #include <BasicModule.h>
00025 #include <ModuleAccess.h>
00026 
00046 class SimpleArp : public BasicModule
00047 {
00048     Module_Class_Members(SimpleArp,BasicModule,0);
00049 
00050 public:
00051 
00055     virtual void handleMessage( cMessage* ){
00056         error("ARP module cannot receive messages!");
00057     };
00058 
00060     int getMacAddr(const int netwAddr);
00061     
00063     int getNetwAddr(const int macAddr);
00064 };
00065 
00066 class  SimpleArpAccess : public ModuleAccess<SimpleArp>
00067 {
00068   public:
00069     SimpleArpAccess() : ModuleAccess<SimpleArp>("arp") {}
00070 };
00071 
00072 
00073 #endif

Generated on Fri Jan 12 08:29:32 2007 for Mobility Framework by  doxygen 1.4.4