|
INET Framework for OMNeT++/OMNEST
|
00001 // 00002 // Generated file, do not edit! Created by opp_msgc 4.2 from transport/contract/TCPCommand.msg. 00003 // 00004 00005 #ifndef _TCPCOMMAND_M_H_ 00006 #define _TCPCOMMAND_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 // }} 00019 00020 00021 00037 enum TcpCommandCode { 00038 TCP_C_OPEN_ACTIVE = 1, 00039 TCP_C_OPEN_PASSIVE = 2, 00040 TCP_C_SEND = 3, 00041 TCP_C_CLOSE = 5, 00042 TCP_C_ABORT = 6, 00043 TCP_C_STATUS = 7 00044 }; 00045 00064 enum TcpStatusInd { 00065 TCP_I_DATA = 1, 00066 TCP_I_URGENT_DATA = 2, 00067 TCP_I_ESTABLISHED = 3, 00068 TCP_I_PEER_CLOSED = 4, 00069 TCP_I_CLOSED = 5, 00070 TCP_I_CONNECTION_REFUSED = 6, 00071 TCP_I_CONNECTION_RESET = 7, 00072 TCP_I_TIMED_OUT = 8, 00073 TCP_I_STATUS = 9 00074 }; 00075 00085 enum TCPErrorCode { 00086 }; 00087 00098 class TCPCommand : public ::cObject 00099 { 00100 protected: 00101 int connId_var; 00102 int userId_var; 00103 00104 private: 00105 void copy(const TCPCommand& other); 00106 00107 protected: 00108 // protected and unimplemented operator==(), to prevent accidental usage 00109 bool operator==(const TCPCommand&); 00110 00111 public: 00112 TCPCommand(); 00113 TCPCommand(const TCPCommand& other); 00114 virtual ~TCPCommand(); 00115 TCPCommand& operator=(const TCPCommand& other); 00116 virtual TCPCommand *dup() const {return new TCPCommand(*this);} 00117 virtual void parsimPack(cCommBuffer *b); 00118 virtual void parsimUnpack(cCommBuffer *b); 00119 00120 // field getter/setter methods 00121 virtual int getConnId() const; 00122 virtual void setConnId(int connId); 00123 virtual int getUserId() const; 00124 virtual void setUserId(int userId); 00125 }; 00126 00127 inline void doPacking(cCommBuffer *b, TCPCommand& obj) {obj.parsimPack(b);} 00128 inline void doUnpacking(cCommBuffer *b, TCPCommand& obj) {obj.parsimUnpack(b);} 00129 00140 class TCPErrorInfo : public ::TCPCommand 00141 { 00142 protected: 00143 int errorCode_var; 00144 opp_string messageText_var; 00145 00146 private: 00147 void copy(const TCPErrorInfo& other); 00148 00149 protected: 00150 // protected and unimplemented operator==(), to prevent accidental usage 00151 bool operator==(const TCPErrorInfo&); 00152 00153 public: 00154 TCPErrorInfo(); 00155 TCPErrorInfo(const TCPErrorInfo& other); 00156 virtual ~TCPErrorInfo(); 00157 TCPErrorInfo& operator=(const TCPErrorInfo& other); 00158 virtual TCPErrorInfo *dup() const {return new TCPErrorInfo(*this);} 00159 virtual void parsimPack(cCommBuffer *b); 00160 virtual void parsimUnpack(cCommBuffer *b); 00161 00162 // field getter/setter methods 00163 virtual int getErrorCode() const; 00164 virtual void setErrorCode(int errorCode); 00165 virtual const char * getMessageText() const; 00166 virtual void setMessageText(const char * messageText); 00167 }; 00168 00169 inline void doPacking(cCommBuffer *b, TCPErrorInfo& obj) {obj.parsimPack(b);} 00170 inline void doUnpacking(cCommBuffer *b, TCPErrorInfo& obj) {obj.parsimUnpack(b);} 00171 00188 class TCPOpenCommand : public ::TCPCommand 00189 { 00190 protected: 00191 IPvXAddress localAddr_var; 00192 IPvXAddress remoteAddr_var; 00193 int localPort_var; 00194 int remotePort_var; 00195 bool fork_var; 00196 opp_string sendQueueClass_var; 00197 opp_string receiveQueueClass_var; 00198 opp_string tcpAlgorithmClass_var; 00199 00200 private: 00201 void copy(const TCPOpenCommand& other); 00202 00203 protected: 00204 // protected and unimplemented operator==(), to prevent accidental usage 00205 bool operator==(const TCPOpenCommand&); 00206 00207 public: 00208 TCPOpenCommand(); 00209 TCPOpenCommand(const TCPOpenCommand& other); 00210 virtual ~TCPOpenCommand(); 00211 TCPOpenCommand& operator=(const TCPOpenCommand& other); 00212 virtual TCPOpenCommand *dup() const {return new TCPOpenCommand(*this);} 00213 virtual void parsimPack(cCommBuffer *b); 00214 virtual void parsimUnpack(cCommBuffer *b); 00215 00216 // field getter/setter methods 00217 virtual IPvXAddress& getLocalAddr(); 00218 virtual const IPvXAddress& getLocalAddr() const {return const_cast<TCPOpenCommand*>(this)->getLocalAddr();} 00219 virtual void setLocalAddr(const IPvXAddress& localAddr); 00220 virtual IPvXAddress& getRemoteAddr(); 00221 virtual const IPvXAddress& getRemoteAddr() const {return const_cast<TCPOpenCommand*>(this)->getRemoteAddr();} 00222 virtual void setRemoteAddr(const IPvXAddress& remoteAddr); 00223 virtual int getLocalPort() const; 00224 virtual void setLocalPort(int localPort); 00225 virtual int getRemotePort() const; 00226 virtual void setRemotePort(int remotePort); 00227 virtual bool getFork() const; 00228 virtual void setFork(bool fork); 00229 virtual const char * getSendQueueClass() const; 00230 virtual void setSendQueueClass(const char * sendQueueClass); 00231 virtual const char * getReceiveQueueClass() const; 00232 virtual void setReceiveQueueClass(const char * receiveQueueClass); 00233 virtual const char * getTcpAlgorithmClass() const; 00234 virtual void setTcpAlgorithmClass(const char * tcpAlgorithmClass); 00235 }; 00236 00237 inline void doPacking(cCommBuffer *b, TCPOpenCommand& obj) {obj.parsimPack(b);} 00238 inline void doUnpacking(cCommBuffer *b, TCPOpenCommand& obj) {obj.parsimUnpack(b);} 00239 00248 class TCPSendCommand : public ::TCPCommand 00249 { 00250 protected: 00251 00252 private: 00253 void copy(const TCPSendCommand& other); 00254 00255 protected: 00256 // protected and unimplemented operator==(), to prevent accidental usage 00257 bool operator==(const TCPSendCommand&); 00258 00259 public: 00260 TCPSendCommand(); 00261 TCPSendCommand(const TCPSendCommand& other); 00262 virtual ~TCPSendCommand(); 00263 TCPSendCommand& operator=(const TCPSendCommand& other); 00264 virtual TCPSendCommand *dup() const {return new TCPSendCommand(*this);} 00265 virtual void parsimPack(cCommBuffer *b); 00266 virtual void parsimUnpack(cCommBuffer *b); 00267 00268 // field getter/setter methods 00269 }; 00270 00271 inline void doPacking(cCommBuffer *b, TCPSendCommand& obj) {obj.parsimPack(b);} 00272 inline void doUnpacking(cCommBuffer *b, TCPSendCommand& obj) {obj.parsimUnpack(b);} 00273 00286 class TCPConnectInfo : public ::TCPCommand 00287 { 00288 protected: 00289 IPvXAddress localAddr_var; 00290 IPvXAddress remoteAddr_var; 00291 int localPort_var; 00292 int remotePort_var; 00293 00294 private: 00295 void copy(const TCPConnectInfo& other); 00296 00297 protected: 00298 // protected and unimplemented operator==(), to prevent accidental usage 00299 bool operator==(const TCPConnectInfo&); 00300 00301 public: 00302 TCPConnectInfo(); 00303 TCPConnectInfo(const TCPConnectInfo& other); 00304 virtual ~TCPConnectInfo(); 00305 TCPConnectInfo& operator=(const TCPConnectInfo& other); 00306 virtual TCPConnectInfo *dup() const {return new TCPConnectInfo(*this);} 00307 virtual void parsimPack(cCommBuffer *b); 00308 virtual void parsimUnpack(cCommBuffer *b); 00309 00310 // field getter/setter methods 00311 virtual IPvXAddress& getLocalAddr(); 00312 virtual const IPvXAddress& getLocalAddr() const {return const_cast<TCPConnectInfo*>(this)->getLocalAddr();} 00313 virtual void setLocalAddr(const IPvXAddress& localAddr); 00314 virtual IPvXAddress& getRemoteAddr(); 00315 virtual const IPvXAddress& getRemoteAddr() const {return const_cast<TCPConnectInfo*>(this)->getRemoteAddr();} 00316 virtual void setRemoteAddr(const IPvXAddress& remoteAddr); 00317 virtual int getLocalPort() const; 00318 virtual void setLocalPort(int localPort); 00319 virtual int getRemotePort() const; 00320 virtual void setRemotePort(int remotePort); 00321 }; 00322 00323 inline void doPacking(cCommBuffer *b, TCPConnectInfo& obj) {obj.parsimPack(b);} 00324 inline void doUnpacking(cCommBuffer *b, TCPConnectInfo& obj) {obj.parsimUnpack(b);} 00325 00359 class TCPStatusInfo : public ::TCPCommand 00360 { 00361 protected: 00362 int state_var; 00363 opp_string stateName_var; 00364 IPvXAddress localAddr_var; 00365 IPvXAddress remoteAddr_var; 00366 int localPort_var; 00367 int remotePort_var; 00368 unsigned int snd_mss_var; 00369 unsigned int snd_una_var; 00370 unsigned int snd_nxt_var; 00371 unsigned int snd_max_var; 00372 unsigned int snd_wnd_var; 00373 unsigned int snd_up_var; 00374 unsigned int snd_wl1_var; 00375 unsigned int snd_wl2_var; 00376 unsigned int iss_var; 00377 unsigned int rcv_nxt_var; 00378 unsigned int rcv_wnd_var; 00379 unsigned int rcv_up_var; 00380 unsigned int irs_var; 00381 bool fin_ack_rcvd_var; 00382 00383 private: 00384 void copy(const TCPStatusInfo& other); 00385 00386 protected: 00387 // protected and unimplemented operator==(), to prevent accidental usage 00388 bool operator==(const TCPStatusInfo&); 00389 00390 public: 00391 TCPStatusInfo(); 00392 TCPStatusInfo(const TCPStatusInfo& other); 00393 virtual ~TCPStatusInfo(); 00394 TCPStatusInfo& operator=(const TCPStatusInfo& other); 00395 virtual TCPStatusInfo *dup() const {return new TCPStatusInfo(*this);} 00396 virtual void parsimPack(cCommBuffer *b); 00397 virtual void parsimUnpack(cCommBuffer *b); 00398 00399 // field getter/setter methods 00400 virtual int getState() const; 00401 virtual void setState(int state); 00402 virtual const char * getStateName() const; 00403 virtual void setStateName(const char * stateName); 00404 virtual IPvXAddress& getLocalAddr(); 00405 virtual const IPvXAddress& getLocalAddr() const {return const_cast<TCPStatusInfo*>(this)->getLocalAddr();} 00406 virtual void setLocalAddr(const IPvXAddress& localAddr); 00407 virtual IPvXAddress& getRemoteAddr(); 00408 virtual const IPvXAddress& getRemoteAddr() const {return const_cast<TCPStatusInfo*>(this)->getRemoteAddr();} 00409 virtual void setRemoteAddr(const IPvXAddress& remoteAddr); 00410 virtual int getLocalPort() const; 00411 virtual void setLocalPort(int localPort); 00412 virtual int getRemotePort() const; 00413 virtual void setRemotePort(int remotePort); 00414 virtual unsigned int getSnd_mss() const; 00415 virtual void setSnd_mss(unsigned int snd_mss); 00416 virtual unsigned int getSnd_una() const; 00417 virtual void setSnd_una(unsigned int snd_una); 00418 virtual unsigned int getSnd_nxt() const; 00419 virtual void setSnd_nxt(unsigned int snd_nxt); 00420 virtual unsigned int getSnd_max() const; 00421 virtual void setSnd_max(unsigned int snd_max); 00422 virtual unsigned int getSnd_wnd() const; 00423 virtual void setSnd_wnd(unsigned int snd_wnd); 00424 virtual unsigned int getSnd_up() const; 00425 virtual void setSnd_up(unsigned int snd_up); 00426 virtual unsigned int getSnd_wl1() const; 00427 virtual void setSnd_wl1(unsigned int snd_wl1); 00428 virtual unsigned int getSnd_wl2() const; 00429 virtual void setSnd_wl2(unsigned int snd_wl2); 00430 virtual unsigned int getIss() const; 00431 virtual void setIss(unsigned int iss); 00432 virtual unsigned int getRcv_nxt() const; 00433 virtual void setRcv_nxt(unsigned int rcv_nxt); 00434 virtual unsigned int getRcv_wnd() const; 00435 virtual void setRcv_wnd(unsigned int rcv_wnd); 00436 virtual unsigned int getRcv_up() const; 00437 virtual void setRcv_up(unsigned int rcv_up); 00438 virtual unsigned int getIrs() const; 00439 virtual void setIrs(unsigned int irs); 00440 virtual bool getFin_ack_rcvd() const; 00441 virtual void setFin_ack_rcvd(bool fin_ack_rcvd); 00442 }; 00443 00444 inline void doPacking(cCommBuffer *b, TCPStatusInfo& obj) {obj.parsimPack(b);} 00445 inline void doUnpacking(cCommBuffer *b, TCPStatusInfo& obj) {obj.parsimUnpack(b);} 00446 00447 00448 #endif // _TCPCOMMAND_M_H_