cPacket Class Reference
[Utility classes]

#include <cpacket.h>

Inheritance diagram for cPacket:

cMessage cObject cPolymorphic List of all members.

Detailed Description

DEPRECATED CLASS.

See User Manual for replacement, and reasons of deprecation.

Network packet class. It adds protocol and PDU type to cMessage. The message kind must be either MK_PACKET or MK_INFO for cPackets.


Public Member Functions

Constructors, destructor, assignment
 cPacket (const char *name=NULL, short protocol=0, short pdu=0)
 cPacket (const cPacket &m)
cPacketoperator= (const cPacket &m)
Redefined cObject member functions.
virtual cPolymorphicdup () const
virtual std::string info () const
virtual void netPack (cCommBuffer *buffer)
virtual void netUnpack (cCommBuffer *buffer)
New attributes.
short protocol () const
short pdu () const
void setProtocol (short p)
void setPdu (short p)


Constructor & Destructor Documentation

cPacket::cPacket const char *  name = NULL,
short  protocol = 0,
short  pdu = 0
[inline, explicit]
 

Constructor.

cPacket::cPacket const cPacket m  ) 
 

Copy constructor.


Member Function Documentation

virtual cPolymorphic* cPacket::dup  )  const [inline, virtual]
 

Creates and returns an exact copy of this object.

See cObject for more details.

Reimplemented from cMessage.

virtual std::string cPacket::info  )  const [virtual]
 

Produces a one-line description of object contents into the buffer passed as argument.

See cObject for more details.

Reimplemented from cMessage.

virtual void cPacket::netPack cCommBuffer buffer  )  [virtual]
 

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.

virtual void cPacket::netUnpack cCommBuffer buffer  )  [virtual]
 

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.

cPacket& cPacket::operator= const cPacket m  ) 
 

Assignment operator.

The name member doesn't get copied; see cObject's operator=() for more details.

short cPacket::pdu  )  const [inline]
 

Returns the PDU type.

short cPacket::protocol  )  const [inline]
 

Returns the protocol ID.

void cPacket::setPdu short  p  )  [inline]
 

Sets the PDU type.

void cPacket::setProtocol short  p  )  [inline]
 

Sets the protocol ID.


The documentation for this class was generated from the following file:
Generated on Sat Oct 21 17:47:57 2006 for OMNeT++/OMNEST Simulation Library by  doxygen 1.4.6