#include <cpacket.h>
Inheritance diagram for cPacket::
Public Methods | |
Constructors, destructor, assignment | |
cPacket (const char *name=NULL, short protocol=0, short pdu=0) | |
cPacket (const cPacket &m) | |
cPacket& | operator= (const cPacket &m) |
Redefined cObject member functions. | |
virtual cObject* | dup () const |
virtual const char* | className () const |
virtual const char* | inspectorFactoryName () const |
virtual void | info (char *buf) |
virtual int | netPack () |
virtual int | netUnpack () |
New attributes. | |
short | protocol () const |
short | pdu () const |
void | setProtocol (short p) |
void | setPdu (short p) |
|
Constructor. |
|
Copy constructor. |
|
Returns pointer to a string containing the class name, "cPacket". Reimplemented from cMessage. |
|
Creates and returns an exact copy of this object. See cObject for more details. Reimplemented from cMessage. |
|
Produces a one-line description of object contents into the buffer passed as argument. See cObject for more details. Reimplemented from cMessage. |
|
Returns the name of the inspector factory class associated with this class. See cObject for more details. Reimplemented from cMessage. |
|
Serializes the object into a PVM or MPI send buffer. Used by the simulation kernel for parallel execution. See cObject for more details. Reimplemented from cMessage. |
|
Deserializes the object from a PVM or MPI receive buffer Used by the simulation kernel for parallel execution. See cObject for more details. Reimplemented from cMessage. |
|
Assignment operator. The name member doesn't get copied; see cObject's operator=() for more details. |
|
Returns the PDU type. |
|
Returns the protocol ID. |
|
Sets the PDU type. |
|
Sets the protocol ID. |