|
INET Framework for OMNeT++/OMNEST
|
00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.2 from transport/contract/SCTPCommand.msg. 00003 // 00004 00005 #ifndef _SCTPCOMMAND_M_H_ 00006 #define _SCTPCOMMAND_M_H_ 00007 00008 #include <omnetpp.h> 00009 00010 // opp_msgc version check 00011 #define MSGC_VERSION 0x0402 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 {{ 00017 #include "IPvXAddress.h" 00018 #include "SCTPAssociation.h" 00019 #include "SCTPCommand.h" 00020 // }} 00021 00022 00023 00033 enum SCTPErrorCode { 00034 }; 00035 00053 class SCTPCommand : public ::cPacket 00054 { 00055 protected: 00056 int assocId_var; 00057 int sid_var; 00058 int numMsgs_var; 00059 int ssn_var; 00060 unsigned short sendUnordered_var; 00061 double lifetime_var; 00062 IPvXAddress localAddr_var; 00063 IPvXAddress remoteAddr_var; 00064 int gate_var; 00065 00066 private: 00067 void copy(const SCTPCommand& other); 00068 00069 protected: 00070 // protected and unimplemented operator==(), to prevent accidental usage 00071 bool operator==(const SCTPCommand&); 00072 00073 public: 00074 SCTPCommand(const char *name=NULL); 00075 SCTPCommand(const SCTPCommand& other); 00076 virtual ~SCTPCommand(); 00077 SCTPCommand& operator=(const SCTPCommand& other); 00078 virtual SCTPCommand *dup() const {return new SCTPCommand(*this);} 00079 virtual void parsimPack(cCommBuffer *b); 00080 virtual void parsimUnpack(cCommBuffer *b); 00081 00082 // field getter/setter methods 00083 virtual int getAssocId() const; 00084 virtual void setAssocId(int assocId); 00085 virtual int getSid() const; 00086 virtual void setSid(int sid); 00087 virtual int getNumMsgs() const; 00088 virtual void setNumMsgs(int numMsgs); 00089 virtual int getSsn() const; 00090 virtual void setSsn(int ssn); 00091 virtual unsigned short getSendUnordered() const; 00092 virtual void setSendUnordered(unsigned short sendUnordered); 00093 virtual double getLifetime() const; 00094 virtual void setLifetime(double lifetime); 00095 virtual IPvXAddress& getLocalAddr(); 00096 virtual const IPvXAddress& getLocalAddr() const {return const_cast<SCTPCommand*>(this)->getLocalAddr();} 00097 virtual void setLocalAddr(const IPvXAddress& localAddr); 00098 virtual IPvXAddress& getRemoteAddr(); 00099 virtual const IPvXAddress& getRemoteAddr() const {return const_cast<SCTPCommand*>(this)->getRemoteAddr();} 00100 virtual void setRemoteAddr(const IPvXAddress& remoteAddr); 00101 virtual int getGate() const; 00102 virtual void setGate(int gate); 00103 }; 00104 00105 inline void doPacking(cCommBuffer *b, SCTPCommand& obj) {obj.parsimPack(b);} 00106 inline void doUnpacking(cCommBuffer *b, SCTPCommand& obj) {obj.parsimUnpack(b);} 00107 00118 class SCTPErrorInfo : public ::SCTPCommand 00119 { 00120 protected: 00121 int errorCode_var; 00122 opp_string messageText_var; 00123 00124 private: 00125 void copy(const SCTPErrorInfo& other); 00126 00127 protected: 00128 // protected and unimplemented operator==(), to prevent accidental usage 00129 bool operator==(const SCTPErrorInfo&); 00130 00131 public: 00132 SCTPErrorInfo(const char *name=NULL); 00133 SCTPErrorInfo(const SCTPErrorInfo& other); 00134 virtual ~SCTPErrorInfo(); 00135 SCTPErrorInfo& operator=(const SCTPErrorInfo& other); 00136 virtual SCTPErrorInfo *dup() const {return new SCTPErrorInfo(*this);} 00137 virtual void parsimPack(cCommBuffer *b); 00138 virtual void parsimUnpack(cCommBuffer *b); 00139 00140 // field getter/setter methods 00141 virtual int getErrorCode() const; 00142 virtual void setErrorCode(int errorCode); 00143 virtual const char * getMessageText() const; 00144 virtual void setMessageText(const char * messageText); 00145 }; 00146 00147 inline void doPacking(cCommBuffer *b, SCTPErrorInfo& obj) {obj.parsimPack(b);} 00148 inline void doUnpacking(cCommBuffer *b, SCTPErrorInfo& obj) {obj.parsimUnpack(b);} 00149 00171 class SCTPOpenCommand : public ::SCTPCommand 00172 { 00173 protected: 00174 AddressVector localAddresses_var; 00175 IPvXAddress remoteAddr_var; 00176 AddressVector remoteAddresses_var; 00177 int localPort_var; 00178 int remotePort_var; 00179 bool fork_var; 00180 opp_string queueClass_var; 00181 opp_string sctpAlgorithmClass_var; 00182 uint32 inboundStreams_var; 00183 uint32 outboundStreams_var; 00184 uint32 numRequests_var; 00185 uint32 messagesToPush_var; 00186 00187 private: 00188 void copy(const SCTPOpenCommand& other); 00189 00190 protected: 00191 // protected and unimplemented operator==(), to prevent accidental usage 00192 bool operator==(const SCTPOpenCommand&); 00193 00194 public: 00195 SCTPOpenCommand(const char *name=NULL); 00196 SCTPOpenCommand(const SCTPOpenCommand& other); 00197 virtual ~SCTPOpenCommand(); 00198 SCTPOpenCommand& operator=(const SCTPOpenCommand& other); 00199 virtual SCTPOpenCommand *dup() const {return new SCTPOpenCommand(*this);} 00200 virtual void parsimPack(cCommBuffer *b); 00201 virtual void parsimUnpack(cCommBuffer *b); 00202 00203 // field getter/setter methods 00204 virtual AddressVector& getLocalAddresses(); 00205 virtual const AddressVector& getLocalAddresses() const {return const_cast<SCTPOpenCommand*>(this)->getLocalAddresses();} 00206 virtual void setLocalAddresses(const AddressVector& localAddresses); 00207 virtual IPvXAddress& getRemoteAddr(); 00208 virtual const IPvXAddress& getRemoteAddr() const {return const_cast<SCTPOpenCommand*>(this)->getRemoteAddr();} 00209 virtual void setRemoteAddr(const IPvXAddress& remoteAddr); 00210 virtual AddressVector& getRemoteAddresses(); 00211 virtual const AddressVector& getRemoteAddresses() const {return const_cast<SCTPOpenCommand*>(this)->getRemoteAddresses();} 00212 virtual void setRemoteAddresses(const AddressVector& remoteAddresses); 00213 virtual int getLocalPort() const; 00214 virtual void setLocalPort(int localPort); 00215 virtual int getRemotePort() const; 00216 virtual void setRemotePort(int remotePort); 00217 virtual bool getFork() const; 00218 virtual void setFork(bool fork); 00219 virtual const char * getQueueClass() const; 00220 virtual void setQueueClass(const char * queueClass); 00221 virtual const char * getSctpAlgorithmClass() const; 00222 virtual void setSctpAlgorithmClass(const char * sctpAlgorithmClass); 00223 virtual uint32 getInboundStreams() const; 00224 virtual void setInboundStreams(uint32 inboundStreams); 00225 virtual uint32 getOutboundStreams() const; 00226 virtual void setOutboundStreams(uint32 outboundStreams); 00227 virtual uint32 getNumRequests() const; 00228 virtual void setNumRequests(uint32 numRequests); 00229 virtual uint32 getMessagesToPush() const; 00230 virtual void setMessagesToPush(uint32 messagesToPush); 00231 }; 00232 00233 inline void doPacking(cCommBuffer *b, SCTPOpenCommand& obj) {obj.parsimPack(b);} 00234 inline void doUnpacking(cCommBuffer *b, SCTPOpenCommand& obj) {obj.parsimUnpack(b);} 00235 00247 class SCTPSendCommand : public ::SCTPCommand 00248 { 00249 protected: 00250 bool last_var; 00251 unsigned int ppid_var; 00252 bool primary_var; 00253 00254 private: 00255 void copy(const SCTPSendCommand& other); 00256 00257 protected: 00258 // protected and unimplemented operator==(), to prevent accidental usage 00259 bool operator==(const SCTPSendCommand&); 00260 00261 public: 00262 SCTPSendCommand(const char *name=NULL); 00263 SCTPSendCommand(const SCTPSendCommand& other); 00264 virtual ~SCTPSendCommand(); 00265 SCTPSendCommand& operator=(const SCTPSendCommand& other); 00266 virtual SCTPSendCommand *dup() const {return new SCTPSendCommand(*this);} 00267 virtual void parsimPack(cCommBuffer *b); 00268 virtual void parsimUnpack(cCommBuffer *b); 00269 00270 // field getter/setter methods 00271 virtual bool getLast() const; 00272 virtual void setLast(bool last); 00273 virtual unsigned int getPpid() const; 00274 virtual void setPpid(unsigned int ppid); 00275 virtual bool getPrimary() const; 00276 virtual void setPrimary(bool primary); 00277 }; 00278 00279 inline void doPacking(cCommBuffer *b, SCTPSendCommand& obj) {obj.parsimPack(b);} 00280 inline void doUnpacking(cCommBuffer *b, SCTPSendCommand& obj) {obj.parsimUnpack(b);} 00281 00298 class SCTPConnectInfo : public ::SCTPCommand 00299 { 00300 protected: 00301 AddressVector remoteAddresses_var; 00302 int localPort_var; 00303 int remotePort_var; 00304 int status_var; 00305 int inboundStreams_var; 00306 int outboundStreams_var; 00307 00308 private: 00309 void copy(const SCTPConnectInfo& other); 00310 00311 protected: 00312 // protected and unimplemented operator==(), to prevent accidental usage 00313 bool operator==(const SCTPConnectInfo&); 00314 00315 public: 00316 SCTPConnectInfo(const char *name=NULL); 00317 SCTPConnectInfo(const SCTPConnectInfo& other); 00318 virtual ~SCTPConnectInfo(); 00319 SCTPConnectInfo& operator=(const SCTPConnectInfo& other); 00320 virtual SCTPConnectInfo *dup() const {return new SCTPConnectInfo(*this);} 00321 virtual void parsimPack(cCommBuffer *b); 00322 virtual void parsimUnpack(cCommBuffer *b); 00323 00324 // field getter/setter methods 00325 virtual AddressVector& getRemoteAddresses(); 00326 virtual const AddressVector& getRemoteAddresses() const {return const_cast<SCTPConnectInfo*>(this)->getRemoteAddresses();} 00327 virtual void setRemoteAddresses(const AddressVector& remoteAddresses); 00328 virtual int getLocalPort() const; 00329 virtual void setLocalPort(int localPort); 00330 virtual int getRemotePort() const; 00331 virtual void setRemotePort(int remotePort); 00332 virtual int getStatus() const; 00333 virtual void setStatus(int status); 00334 virtual int getInboundStreams() const; 00335 virtual void setInboundStreams(int inboundStreams); 00336 virtual int getOutboundStreams() const; 00337 virtual void setOutboundStreams(int outboundStreams); 00338 }; 00339 00340 inline void doPacking(cCommBuffer *b, SCTPConnectInfo& obj) {obj.parsimPack(b);} 00341 inline void doUnpacking(cCommBuffer *b, SCTPConnectInfo& obj) {obj.parsimUnpack(b);} 00342 00355 class SCTPStatusInfo : public ::SCTPCommand 00356 { 00357 protected: 00358 int state_var; 00359 opp_string stateName_var; 00360 IPvXAddress pathId_var; 00361 bool active_var; 00362 00363 private: 00364 void copy(const SCTPStatusInfo& other); 00365 00366 protected: 00367 // protected and unimplemented operator==(), to prevent accidental usage 00368 bool operator==(const SCTPStatusInfo&); 00369 00370 public: 00371 SCTPStatusInfo(const char *name=NULL); 00372 SCTPStatusInfo(const SCTPStatusInfo& other); 00373 virtual ~SCTPStatusInfo(); 00374 SCTPStatusInfo& operator=(const SCTPStatusInfo& other); 00375 virtual SCTPStatusInfo *dup() const {return new SCTPStatusInfo(*this);} 00376 virtual void parsimPack(cCommBuffer *b); 00377 virtual void parsimUnpack(cCommBuffer *b); 00378 00379 // field getter/setter methods 00380 virtual int getState() const; 00381 virtual void setState(int state); 00382 virtual const char * getStateName() const; 00383 virtual void setStateName(const char * stateName); 00384 virtual IPvXAddress& getPathId(); 00385 virtual const IPvXAddress& getPathId() const {return const_cast<SCTPStatusInfo*>(this)->getPathId();} 00386 virtual void setPathId(const IPvXAddress& pathId); 00387 virtual bool getActive() const; 00388 virtual void setActive(bool active); 00389 }; 00390 00391 inline void doPacking(cCommBuffer *b, SCTPStatusInfo& obj) {obj.parsimPack(b);} 00392 inline void doUnpacking(cCommBuffer *b, SCTPStatusInfo& obj) {obj.parsimUnpack(b);} 00393 00403 class SCTPPathInfo : public ::SCTPCommand 00404 { 00405 protected: 00406 IPvXAddress remoteAddress_var; 00407 00408 private: 00409 void copy(const SCTPPathInfo& other); 00410 00411 protected: 00412 // protected and unimplemented operator==(), to prevent accidental usage 00413 bool operator==(const SCTPPathInfo&); 00414 00415 public: 00416 SCTPPathInfo(const char *name=NULL); 00417 SCTPPathInfo(const SCTPPathInfo& other); 00418 virtual ~SCTPPathInfo(); 00419 SCTPPathInfo& operator=(const SCTPPathInfo& other); 00420 virtual SCTPPathInfo *dup() const {return new SCTPPathInfo(*this);} 00421 virtual void parsimPack(cCommBuffer *b); 00422 virtual void parsimUnpack(cCommBuffer *b); 00423 00424 // field getter/setter methods 00425 virtual IPvXAddress& getRemoteAddress(); 00426 virtual const IPvXAddress& getRemoteAddress() const {return const_cast<SCTPPathInfo*>(this)->getRemoteAddress();} 00427 virtual void setRemoteAddress(const IPvXAddress& remoteAddress); 00428 }; 00429 00430 inline void doPacking(cCommBuffer *b, SCTPPathInfo& obj) {obj.parsimPack(b);} 00431 inline void doUnpacking(cCommBuffer *b, SCTPPathInfo& obj) {obj.parsimUnpack(b);} 00432 00444 class SCTPResetInfo : public ::SCTPCommand 00445 { 00446 protected: 00447 IPvXAddress remoteAddr_var; 00448 unsigned short requestType_var; 00449 char *streams_var; // array ptr 00450 unsigned int streams_arraysize; 00451 00452 private: 00453 void copy(const SCTPResetInfo& other); 00454 00455 protected: 00456 // protected and unimplemented operator==(), to prevent accidental usage 00457 bool operator==(const SCTPResetInfo&); 00458 00459 public: 00460 SCTPResetInfo(const char *name=NULL); 00461 SCTPResetInfo(const SCTPResetInfo& other); 00462 virtual ~SCTPResetInfo(); 00463 SCTPResetInfo& operator=(const SCTPResetInfo& other); 00464 virtual SCTPResetInfo *dup() const {return new SCTPResetInfo(*this);} 00465 virtual void parsimPack(cCommBuffer *b); 00466 virtual void parsimUnpack(cCommBuffer *b); 00467 00468 // field getter/setter methods 00469 virtual IPvXAddress& getRemoteAddr(); 00470 virtual const IPvXAddress& getRemoteAddr() const {return const_cast<SCTPResetInfo*>(this)->getRemoteAddr();} 00471 virtual void setRemoteAddr(const IPvXAddress& remoteAddr); 00472 virtual unsigned short getRequestType() const; 00473 virtual void setRequestType(unsigned short requestType); 00474 virtual void setStreamsArraySize(unsigned int size); 00475 virtual unsigned int getStreamsArraySize() const; 00476 virtual char getStreams(unsigned int k) const; 00477 virtual void setStreams(unsigned int k, char streams); 00478 }; 00479 00480 inline void doPacking(cCommBuffer *b, SCTPResetInfo& obj) {obj.parsimPack(b);} 00481 inline void doUnpacking(cCommBuffer *b, SCTPResetInfo& obj) {obj.parsimUnpack(b);} 00482 00492 class SCTPInfo : public ::SCTPCommand 00493 { 00494 protected: 00495 int text_var; 00496 00497 private: 00498 void copy(const SCTPInfo& other); 00499 00500 protected: 00501 // protected and unimplemented operator==(), to prevent accidental usage 00502 bool operator==(const SCTPInfo&); 00503 00504 public: 00505 SCTPInfo(const char *name=NULL); 00506 SCTPInfo(const SCTPInfo& other); 00507 virtual ~SCTPInfo(); 00508 SCTPInfo& operator=(const SCTPInfo& other); 00509 virtual SCTPInfo *dup() const {return new SCTPInfo(*this);} 00510 virtual void parsimPack(cCommBuffer *b); 00511 virtual void parsimUnpack(cCommBuffer *b); 00512 00513 // field getter/setter methods 00514 virtual int getText() const; 00515 virtual void setText(int text); 00516 }; 00517 00518 inline void doPacking(cCommBuffer *b, SCTPInfo& obj) {obj.parsimPack(b);} 00519 inline void doUnpacking(cCommBuffer *b, SCTPInfo& obj) {obj.parsimUnpack(b);} 00520 00532 class SCTPRcvCommand : public ::SCTPCommand 00533 { 00534 protected: 00535 uint32 ppid_var; 00536 uint32 tsn_var; 00537 uint32 cumTsn_var; 00538 00539 private: 00540 void copy(const SCTPRcvCommand& other); 00541 00542 protected: 00543 // protected and unimplemented operator==(), to prevent accidental usage 00544 bool operator==(const SCTPRcvCommand&); 00545 00546 public: 00547 SCTPRcvCommand(const char *name=NULL); 00548 SCTPRcvCommand(const SCTPRcvCommand& other); 00549 virtual ~SCTPRcvCommand(); 00550 SCTPRcvCommand& operator=(const SCTPRcvCommand& other); 00551 virtual SCTPRcvCommand *dup() const {return new SCTPRcvCommand(*this);} 00552 virtual void parsimPack(cCommBuffer *b); 00553 virtual void parsimUnpack(cCommBuffer *b); 00554 00555 // field getter/setter methods 00556 virtual uint32 getPpid() const; 00557 virtual void setPpid(uint32 ppid); 00558 virtual uint32 getTsn() const; 00559 virtual void setTsn(uint32 tsn); 00560 virtual uint32 getCumTsn() const; 00561 virtual void setCumTsn(uint32 cumTsn); 00562 }; 00563 00564 inline void doPacking(cCommBuffer *b, SCTPRcvCommand& obj) {obj.parsimPack(b);} 00565 inline void doUnpacking(cCommBuffer *b, SCTPRcvCommand& obj) {obj.parsimUnpack(b);} 00566 00567 00568 #endif // _SCTPCOMMAND_M_H_