#include <IPControlInfo.h>
Inheritance diagram for IPControlInfo:
Public Member Functions | |
IPControlInfo () | |
~IPControlInfo () | |
IPControlInfo (const IPControlInfo &other) | |
IPControlInfo & | operator= (const IPControlInfo &other) |
virtual void | setOrigDatagram (IPDatagram *d) |
virtual IPDatagram * | removeOrigDatagram () |
Protected Attributes | |
IPDatagram * | dgram |
|
00031 : IPControlInfo_Base() {dgram=NULL;}
|
|
00023 { 00024 delete dgram; 00025 }
|
|
00033 : IPControlInfo_Base() {dgram=NULL; operator=(other);}
|
|
00034 {IPControlInfo_Base::operator=(other); return *this;}
|
|
00035 { 00036 if (!dgram) 00037 opp_error("IPControlInfo::removeOrigDatagram(): no datagram attached " 00038 "(already removed, or maybe this IPControlInfo does not come " 00039 "from the IP module?)"); 00040 IPDatagram *ret = dgram; 00041 dgram = NULL; 00042 return ret; 00043 }
|
|
00028 { 00029 if (dgram) 00030 opp_error("IPControlInfo::setOrigDatagram(): a datagram is already attached"); 00031 dgram = d; 00032 }
|
|
|