IPControlInfo.h

Go to the documentation of this file.
00001 //
00002 // Copyright (C) 2005 Andras Varga
00003 //
00004 // This program is free software; you can redistribute it and/or
00005 // modify it under the terms of the GNU Lesser General Public
00006 // License as published by the Free Software Foundation; either
00007 // version 2.1 of the License, or (at your option) any later version.
00008 //
00009 // This program is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU Lesser General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU Lesser General Public
00015 // License along with this program; if not, see <http://www.gnu.org/licenses/>.
00016 //
00017 
00018 #ifndef __INET_IPCONTROLINFO_H
00019 #define __INET_IPCONTROLINFO_H
00020 
00021 #include "IPControlInfo_m.h"
00022 
00023 class IPDatagram;
00024 
00030 class INET_API IPControlInfo : public IPControlInfo_Base
00031 {
00032   protected:
00033     IPDatagram *dgram;
00034   public:
00035     IPControlInfo() : IPControlInfo_Base() {dgram=NULL;}
00036     virtual ~IPControlInfo();
00037     IPControlInfo(const IPControlInfo& other) : IPControlInfo_Base() {dgram=NULL; operator=(other);}
00038     IPControlInfo& operator=(const IPControlInfo& other) {IPControlInfo_Base::operator=(other); return *this;}
00039 
00040     virtual void setOrigDatagram(IPDatagram *d);
00041     virtual IPDatagram *getOrigDatagram() const {return dgram;}
00042     virtual IPDatagram *removeOrigDatagram();
00043 };
00044 
00045 #endif
00046 
00047