OverSim
P2pnsTunnelMessage Class Reference

Class generated from tier2/p2pns/P2pnsMessage.msg by opp_msgc. More...

#include <P2pnsMessage_m.h>

Inheritance diagram for P2pnsTunnelMessage:
OverSimMessage OverSimMessage_Base

Public Member Functions

 P2pnsTunnelMessage (const char *name=NULL, int kind=0)
 P2pnsTunnelMessage (const P2pnsTunnelMessage &other)
virtual ~P2pnsTunnelMessage ()
P2pnsTunnelMessageoperator= (const P2pnsTunnelMessage &other)
virtual P2pnsTunnelMessagedup () const
virtual void parsimPack (cCommBuffer *b)
virtual void parsimUnpack (cCommBuffer *b)
virtual OverlayKeygetSrcId ()
virtual const OverlayKeygetSrcId () const
virtual void setSrcId (const OverlayKey &srcId)
virtual BinaryValuegetPayload ()
virtual const BinaryValuegetPayload () const
virtual void setPayload (const BinaryValue &payload)
- Public Member Functions inherited from OverSimMessage
 OverSimMessage (const char *name=NULL, int kind=0)
 OverSimMessage (const OverSimMessage &other)
OverSimMessageoperator= (const OverSimMessage &other)
- Public Member Functions inherited from OverSimMessage_Base
virtual ~OverSimMessage_Base ()

Protected Member Functions

bool operator== (const P2pnsTunnelMessage &)

Protected Attributes

OverlayKey srcId_var
BinaryValue payload_var

Private Member Functions

void copy (const P2pnsTunnelMessage &other)

Detailed Description

Class generated from tier2/p2pns/P2pnsMessage.msg by opp_msgc.

packet P2pnsTunnelMessage extends OverSimMessage
{
    OverlayKey srcId;   
    BinaryValue payload; 
}

Definition at line 39 of file P2pnsMessage_m.h.

Constructor & Destructor Documentation

P2pnsTunnelMessage::P2pnsTunnelMessage ( const char *  name = NULL,
int  kind = 0 
)

Referenced by dup().

P2pnsTunnelMessage::P2pnsTunnelMessage ( const P2pnsTunnelMessage other)
virtual P2pnsTunnelMessage::~P2pnsTunnelMessage ( )
virtual

Member Function Documentation

void P2pnsTunnelMessage::copy ( const P2pnsTunnelMessage other)
private
virtual P2pnsTunnelMessage* P2pnsTunnelMessage::dup ( ) const
inlinevirtual

Reimplemented from OverSimMessage.

Definition at line 57 of file P2pnsMessage_m.h.

{return new P2pnsTunnelMessage(*this);}
virtual BinaryValue& P2pnsTunnelMessage::getPayload ( )
virtual

Referenced by P2pns::deliver().

virtual const BinaryValue& P2pnsTunnelMessage::getPayload ( ) const
inlinevirtual

Definition at line 66 of file P2pnsMessage_m.h.

Referenced by getPayload().

{return const_cast<P2pnsTunnelMessage*>(this)->getPayload();}
virtual OverlayKey& P2pnsTunnelMessage::getSrcId ( )
virtual
virtual const OverlayKey& P2pnsTunnelMessage::getSrcId ( ) const
inlinevirtual

Definition at line 63 of file P2pnsMessage_m.h.

Referenced by getSrcId().

{return const_cast<P2pnsTunnelMessage*>(this)->getSrcId();}
P2pnsTunnelMessage& P2pnsTunnelMessage::operator= ( const P2pnsTunnelMessage other)
bool P2pnsTunnelMessage::operator== ( const P2pnsTunnelMessage )
protected
virtual void P2pnsTunnelMessage::parsimPack ( cCommBuffer *  b)
virtual

Reimplemented from OverSimMessage.

Referenced by doPacking().

virtual void P2pnsTunnelMessage::parsimUnpack ( cCommBuffer *  b)
virtual

Reimplemented from OverSimMessage.

Referenced by doUnpacking().

virtual void P2pnsTunnelMessage::setPayload ( const BinaryValue payload)
virtual
virtual void P2pnsTunnelMessage::setSrcId ( const OverlayKey srcId)
virtual

Member Data Documentation

BinaryValue P2pnsTunnelMessage::payload_var
protected

Definition at line 43 of file P2pnsMessage_m.h.

OverlayKey P2pnsTunnelMessage::srcId_var
protected

Definition at line 42 of file P2pnsMessage_m.h.


The documentation for this class was generated from the following file: