IPControlInfo Class Reference

#include <IPControlInfo.h>

List of all members.

Public Member Functions

 IPControlInfo ()
virtual ~IPControlInfo ()
 IPControlInfo (const IPControlInfo &other)
IPControlInfooperator= (const IPControlInfo &other)
virtual void setOrigDatagram (IPDatagram *d)
virtual IPDatagram * removeOrigDatagram ()

Protected Attributes

IPDatagram * dgram


Constructor & Destructor Documentation

IPControlInfo::IPControlInfo (  )  [inline]

00030 : IPControlInfo_Base() {dgram=NULL;}

IPControlInfo::~IPControlInfo (  )  [virtual]

00022 {
00023     delete dgram;  //FIXME this crashes on program exit all too often!
00024 }

IPControlInfo::IPControlInfo ( const IPControlInfo other  )  [inline]

00032 : IPControlInfo_Base() {dgram=NULL; operator=(other);}


Member Function Documentation

IPControlInfo& IPControlInfo::operator= ( const IPControlInfo other  )  [inline]

00033 {IPControlInfo_Base::operator=(other); return *this;}

void IPControlInfo::setOrigDatagram ( IPDatagram *  d  )  [virtual]

Referenced by IP::decapsulateIP().

00027 {
00028     if (dgram)
00029         opp_error("IPControlInfo::setOrigDatagram(): a datagram is already attached");
00030     dgram = d;
00031 }

IPDatagram * IPControlInfo::removeOrigDatagram (  )  [virtual]

Referenced by SCTP::handleMessage(), and ICMP::sendErrorMessage().

00034 {
00035     if (!dgram)
00036         opp_error("IPControlInfo::removeOrigDatagram(): no datagram attached "
00037                   "(already removed, or maybe this IPControlInfo does not come "
00038                   "from the IP module?)");
00039     IPDatagram *ret = dgram;
00040     dgram = NULL;
00041     return ret;
00042 }


Member Data Documentation

IPDatagram* IPControlInfo::dgram [protected]


The documentation for this class was generated from the following files:

Generated on Fri Mar 20 18:51:19 2009 for INET Framework for OMNeT++/OMNEST by  doxygen 1.5.5