#include <IPControlInfo.h>
Public Member Functions | |
IPControlInfo () | |
virtual | ~IPControlInfo () |
IPControlInfo (const IPControlInfo &other) | |
IPControlInfo & | operator= (const IPControlInfo &other) |
virtual void | setOrigDatagram (IPDatagram *d) |
virtual IPDatagram * | removeOrigDatagram () |
Protected Attributes | |
IPDatagram * | dgram |
IPControlInfo::IPControlInfo | ( | ) | [inline] |
IPControlInfo::~IPControlInfo | ( | ) | [virtual] |
IPControlInfo::IPControlInfo | ( | const IPControlInfo & | other | ) | [inline] |
IPControlInfo& IPControlInfo::operator= | ( | const IPControlInfo & | other | ) | [inline] |
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 }
IPDatagram* IPControlInfo::dgram [protected] |
Referenced by removeOrigDatagram(), setOrigDatagram(), and ~IPControlInfo().