BaseArp.h

00001 /* -*- mode:c++ -*- ********************************************************
00002  * file:        BaseArp.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 BASE_ARP_H
00021 #define BASE_ARP_H
00022 
00023 #include <ArpInterface.h>
00024 #include <AddressingInterface.h>
00025 #include <BaseModule.h>
00026 #include <FindModule.h>
00027 
00051 class BaseArp : public ArpInterface,
00052         public AddressingInterface,
00053         public BaseModule
00054 {
00056   bool coreDebug;
00057 
00058 public:
00059   virtual void initialize(int stage);
00060 
00064     virtual void handleMessage( cMessage* ){
00065         error("ARP module cannot receive messages!");
00066     };
00067 
00069     virtual int getMacAddr(const int netwAddr);
00070 
00072     virtual int myMacAddr(cModule* mac);
00073 
00075     virtual int myNetwAddr(cModule* netw);
00076 };
00077 
00078 
00079 #endif