00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.0 from tier2/p2pns/P2pnsMessage.msg. 00003 // 00004 00005 #ifndef _P2PNSMESSAGE_M_H_ 00006 #define _P2PNSMESSAGE_M_H_ 00007 00008 #include <omnetpp.h> 00009 00010 // opp_msgc version check 00011 #define MSGC_VERSION 0x0400 00012 #if (MSGC_VERSION!=OMNETPP_VERSION) 00013 # error Version mismatch! Probably this file was generated by an earlier version of opp_msgc: 'make clean' should help. 00014 #endif 00015 00016 // cplusplus {{ ... }} section: 00017 00018 #include <IPvXAddress.h> 00019 #include <NodeHandle.h> 00020 #include <TransportAddress.h> 00021 #include <CommonMessages_m.h> 00022 #include <BinaryValue.h> 00023 00024 #define P2PNSTUNNELMESSAGE_L(msg) (KEY_L + \ 00025 msg->getPayload().size() * sizeof(char)) 00026 // end cplusplus 00027 00028 00029 00040 class P2pnsTunnelMessage : public OverSimMessage 00041 { 00042 protected: 00043 OverlayKey srcId_var; 00044 BinaryValue payload_var; 00045 00046 // protected and unimplemented operator==(), to prevent accidental usage 00047 bool operator==(const P2pnsTunnelMessage&); 00048 00049 public: 00050 P2pnsTunnelMessage(const char *name=NULL, int kind=0); 00051 P2pnsTunnelMessage(const P2pnsTunnelMessage& other); 00052 virtual ~P2pnsTunnelMessage(); 00053 P2pnsTunnelMessage& operator=(const P2pnsTunnelMessage& other); 00054 virtual P2pnsTunnelMessage *dup() const {return new P2pnsTunnelMessage(*this);} 00055 virtual void parsimPack(cCommBuffer *b); 00056 virtual void parsimUnpack(cCommBuffer *b); 00057 00058 // field getter/setter methods 00059 virtual OverlayKey& getSrcId(); 00060 virtual const OverlayKey& getSrcId() const {return const_cast<P2pnsTunnelMessage*>(this)->getSrcId();} 00061 virtual void setSrcId(const OverlayKey& srcId_var); 00062 virtual BinaryValue& getPayload(); 00063 virtual const BinaryValue& getPayload() const {return const_cast<P2pnsTunnelMessage*>(this)->getPayload();} 00064 virtual void setPayload(const BinaryValue& payload_var); 00065 }; 00066 00067 inline void doPacking(cCommBuffer *b, P2pnsTunnelMessage& obj) {obj.parsimPack(b);} 00068 inline void doUnpacking(cCommBuffer *b, P2pnsTunnelMessage& obj) {obj.parsimUnpack(b);} 00069 00079 class P2pnsKeepaliveTimer : public cMessage 00080 { 00081 protected: 00082 OverlayKey key_var; 00083 00084 // protected and unimplemented operator==(), to prevent accidental usage 00085 bool operator==(const P2pnsKeepaliveTimer&); 00086 00087 public: 00088 P2pnsKeepaliveTimer(const char *name=NULL, int kind=0); 00089 P2pnsKeepaliveTimer(const P2pnsKeepaliveTimer& other); 00090 virtual ~P2pnsKeepaliveTimer(); 00091 P2pnsKeepaliveTimer& operator=(const P2pnsKeepaliveTimer& other); 00092 virtual P2pnsKeepaliveTimer *dup() const {return new P2pnsKeepaliveTimer(*this);} 00093 virtual void parsimPack(cCommBuffer *b); 00094 virtual void parsimUnpack(cCommBuffer *b); 00095 00096 // field getter/setter methods 00097 virtual OverlayKey& getKey(); 00098 virtual const OverlayKey& getKey() const {return const_cast<P2pnsKeepaliveTimer*>(this)->getKey();} 00099 virtual void setKey(const OverlayKey& key_var); 00100 }; 00101 00102 inline void doPacking(cCommBuffer *b, P2pnsKeepaliveTimer& obj) {obj.parsimPack(b);} 00103 inline void doUnpacking(cCommBuffer *b, P2pnsKeepaliveTimer& obj) {obj.parsimUnpack(b);} 00104 00105 00106 #endif // _P2PNSMESSAGE_M_H_
1.5.8