00001 // 00002 // Generated file, do not edit! Created by opp_msgc. 00003 // 00004 00005 #ifndef RTSPMESSAGE_M_H_ 00006 #define RTSPMESSAGE_M_H_ 00007 00008 #include <omnetpp.h> 00009 00010 enum RequestMethod { 00011 SETUP = 0, 00012 PLAY = 1, 00013 PAUSE = 2, 00014 TEARDOWN = 3, 00015 }; 00016 00017 class rtspRequest : public cMessage 00018 { 00019 protected: 00020 int method; 00021 opp_string destinationAddress; 00022 opp_string fileName; 00023 double rtspVersion; 00024 opp_string sessionId; 00025 int cseq; 00026 opp_string transport; 00027 opp_string range; 00028 public: 00029 rtspRequest(const char *name=NULL); 00030 rtspRequest(const rtspRequest& other); 00031 virtual ~rtspRequest(); 00032 rtspRequest& operator=(const rtspRequest& other); 00033 virtual cObject *dup() const {return new rtspRequest(*this);} 00034 00035 // field getter/setter methods 00036 virtual int getMethod() const; 00037 virtual void setMethod(int method); 00038 virtual const char * getDestinationAddress() const; 00039 virtual void setDestinationAddress(const char * destinationAddress); 00040 virtual const char * getFileName() const; 00041 virtual void setFileName(const char * fileName); 00042 virtual double getRtspVersion() const; 00043 virtual void setRtspVersion(double rtspVersion); 00044 virtual const char * getSessionId() const; 00045 virtual void setSessionId(const char * sessionId); 00046 virtual int getCseq() const; 00047 virtual void setCseq(int cseq); 00048 virtual const char * getTransport() const; 00049 virtual void setTransport(const char * transport); 00050 virtual const char * getRange() const; 00051 virtual void setRange(const char * range); 00052 }; 00053 00054 class rtspResponse : public cMessage 00055 { 00056 protected: 00057 double rtspVersion; 00058 int statusCode; 00059 opp_string reasonPhrase; 00060 opp_string sessionId; 00061 int cseq; 00062 opp_string rtpInfo; 00063 public: 00064 rtspResponse(const char *name=NULL); 00065 rtspResponse(const rtspResponse& other); 00066 virtual ~rtspResponse(); 00067 rtspResponse& operator=(const rtspResponse& other); 00068 virtual cObject *dup() const {return new rtspResponse(*this);} 00069 00070 // field getter/setter methods 00071 virtual double getRtspVersion() const; 00072 virtual void setRtspVersion(double rtspVersion); 00073 virtual int getStatusCode() const; 00074 virtual void setStatusCode(int statusCode); 00075 virtual const char * getReasonPhrase() const; 00076 virtual void setReasonPhrase(const char * reasonPhrase); 00077 virtual const char * getSessionId() const; 00078 virtual void setSessionId(const char * sessionId); 00079 virtual int getCseq() const; 00080 virtual void setCseq(int cseq); 00081 virtual const char * getRtpInfo() const; 00082 virtual void setRtpInfo(const char * rtpInfo); 00083 }; 00084 00085 #endif // RTSPMESSAGE_M_H_