TCPSegment_Base Class Reference
#include <TCPSegment_m.h>
Inheritance diagram for TCPSegment_Base:
List of all members.
Detailed Description
Class generated from TCPSegment.msg
by opp_msgc.
message TCPSegment extends cMessage
{
properties:
omitGetVerb = true;
customize=true;
fields:
short srcPort;
short destPort;
unsigned int sequenceNo;
unsigned int ackNo;
bool urgBit;
bool ackBit;
bool pshBit;
bool rstBit;
bool synBit;
bool finBit;
unsigned long window;
unsigned long urgentPointer;
int payloadLength;
abstract TCPPayloadMessage payload[];
};
TCPSegment_Base is only useful if it gets subclassed, and TCPSegment is derived from it. The minimum code to be written for TCPSegment is the following:
class TCPSegment : public TCPSegment_Base
{
public:
TCPSegment(const char *name=NULL, int kind=0) : TCPSegment_Base(name,kind) {}
TCPSegment(const TCPSegment& other) : TCPSegment_Base(other.name()) {operator=(other);}
TCPSegment& operator=(const TCPSegment& other) {TCPSegment_Base::operator=(other); return *this;}
virtual cPolymorphic *dup() const {return new TCPSegment(*this);}
// ADD CODE HERE to redefine and implement pure virtual functions from TCPSegment_Base
};
The following should go into a .cc (.cpp) file:
Register_Class(TCPSegment);
Constructor & Destructor Documentation
TCPSegment_Base::TCPSegment_Base |
( |
const char * |
name = NULL , |
|
|
int |
kind = 0 |
|
) |
[protected] |
|
TCPSegment_Base::TCPSegment_Base |
( |
const TCPSegment_Base & |
other |
) |
[protected] |
|
Member Function Documentation
virtual bool TCPSegment_Base::ackBit |
( |
|
) |
const [virtual] |
|
virtual unsigned int TCPSegment_Base::ackNo |
( |
|
) |
const [virtual] |
|
virtual short TCPSegment_Base::destPort |
( |
|
) |
const [virtual] |
|
virtual cPolymorphic* TCPSegment_Base::dup |
( |
|
) |
const [inline, virtual] |
|
|
Reimplemented in TCPSegment. 00157 {throw new cException("You forgot to manually add a dup() function to class TCPSegment");}
|
virtual bool TCPSegment_Base::finBit |
( |
|
) |
const [virtual] |
|
virtual void TCPSegment_Base::netPack |
( |
cCommBuffer * |
b |
) |
[virtual] |
|
virtual void TCPSegment_Base::netUnpack |
( |
cCommBuffer * |
b |
) |
[virtual] |
|
virtual const TCPPayloadMessage& TCPSegment_Base::payload |
( |
unsigned int |
k |
) |
const [inline, virtual] |
|
|
00191 {return const_cast<TCPSegment_Base*>(this)->payload(k);}
|
virtual TCPPayloadMessage& TCPSegment_Base::payload |
( |
unsigned int |
k |
) |
[pure virtual] |
|
virtual unsigned int TCPSegment_Base::payloadArraySize |
( |
|
) |
const [pure virtual] |
|
virtual int TCPSegment_Base::payloadLength |
( |
|
) |
const [virtual] |
|
virtual bool TCPSegment_Base::pshBit |
( |
|
) |
const [virtual] |
|
virtual bool TCPSegment_Base::rstBit |
( |
|
) |
const [virtual] |
|
virtual unsigned int TCPSegment_Base::sequenceNo |
( |
|
) |
const [virtual] |
|
virtual void TCPSegment_Base::setAckBit |
( |
bool |
ackBit_var |
) |
[virtual] |
|
virtual void TCPSegment_Base::setAckNo |
( |
unsigned int |
ackNo_var |
) |
[virtual] |
|
virtual void TCPSegment_Base::setDestPort |
( |
short |
destPort_var |
) |
[virtual] |
|
virtual void TCPSegment_Base::setFinBit |
( |
bool |
finBit_var |
) |
[virtual] |
|
virtual void TCPSegment_Base::setPayload |
( |
unsigned int |
k, |
|
|
const TCPPayloadMessage & |
payload_var |
|
) |
[pure virtual] |
|
virtual void TCPSegment_Base::setPayloadArraySize |
( |
unsigned int |
size |
) |
[pure virtual] |
|
virtual void TCPSegment_Base::setPayloadLength |
( |
int |
payloadLength_var |
) |
[virtual] |
|
virtual void TCPSegment_Base::setPshBit |
( |
bool |
pshBit_var |
) |
[virtual] |
|
virtual void TCPSegment_Base::setRstBit |
( |
bool |
rstBit_var |
) |
[virtual] |
|
virtual void TCPSegment_Base::setSequenceNo |
( |
unsigned int |
sequenceNo_var |
) |
[virtual] |
|
virtual void TCPSegment_Base::setSrcPort |
( |
short |
srcPort_var |
) |
[virtual] |
|
virtual void TCPSegment_Base::setSynBit |
( |
bool |
synBit_var |
) |
[virtual] |
|
virtual void TCPSegment_Base::setUrgBit |
( |
bool |
urgBit_var |
) |
[virtual] |
|
virtual void TCPSegment_Base::setUrgentPointer |
( |
unsigned long |
urgentPointer_var |
) |
[virtual] |
|
virtual void TCPSegment_Base::setWindow |
( |
unsigned long |
window_var |
) |
[virtual] |
|
virtual short TCPSegment_Base::srcPort |
( |
|
) |
const [virtual] |
|
virtual bool TCPSegment_Base::synBit |
( |
|
) |
const [virtual] |
|
virtual bool TCPSegment_Base::urgBit |
( |
|
) |
const [virtual] |
|
virtual unsigned long TCPSegment_Base::urgentPointer |
( |
|
) |
const [virtual] |
|
virtual unsigned long TCPSegment_Base::window |
( |
|
) |
const [virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Thu Oct 19 18:22:31 2006 for INET Framework for OMNeT++/OMNEST by
1.4.0