| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Constructor Summary | |
RtspMsg() | |
RtspMsg(const RtspMsg & src) |
Destructor Summary | |
virtual | ~RtspMsg() |
Method Summary | |
virtual Data | encode() not finished |
const const RtspMsgCompletionType | getCompletionFlag() |
const Data & | getContentBase() It parse Content-Base header for the first time and return a reference of the data |
const int | getContentLength() if it's the first time call, it will parse content-length header and set myContentLength, otherwise it directly return it |
const Data & | getContentType() It parse Content-Type header and return a copy of the data Return the whole string of the header body for now Application just need to see if the returned Data has substring of "application/sdp" to know if it support sdp TODO: try parse the detail of Content-Type and Accept |
const Data & | getCSeq() It parse Cseq header for the first time and assign myCSeq |
const bool | getFirstWordUnknown() |
const const Data & | getHeaders() |
const const Data & | getMsgBody() |
Sptr< RtspRangeHdr > | getRange() It returns an object when parser found and understood the Range hdr, and it assigns myRange; otherwise return 0 |
const Data & | getSessionId() It parse Session header for the first time and assign mySessionId |
Data & | getStartLine() |
const Sptr< RtspTcpBuffer > | getTransConnPtr() transport connection |
Sptr< RtspTransportSpec > | getTransport() It returns an object when parser found a suitable transport-spec in the transport hdr, and it assigns myTransportSpec; otherwise it returns 0 |
const bool | hasBody() |
virtual bool | isRequest() It will look at the first word of the startLine if it is *not* RTSP, return true; otherwise false. |
virtual bool | isResponse() It will look at the first word of the startLine if it *is* RTSP, return true; otherwise false. |
bool | isValid() check if there is Cseq number |
RtspMsg & | operator=(const RtspMsg & src) |
void | setCompletionFlag(RtspMsgCompletionType flag) |
void | setFirstWordUnknown(bool flag) |
void | setHasBody(bool has) |
void | setHeaders(const Data & hdr) |
void | setHeadersMap(u_int32_t hdrType, const HeaderValueData & hvd) |
void | setMsgBody(const Data & body) |
void | setNumHeader(u_int32_t num) |
void | setStartLine(const Data & stline) |
void | setTransConnPtr(Sptr< RtspTcpBuffer > ptr) |
Constructor Detail |
public RtspMsg()
public RtspMsg(const RtspMsg & src)
Method Detail |
public virtual ~RtspMsg()
Method Detail |
public virtual Data encode()
public const const RtspMsgCompletionType getCompletionFlag()
public const Data & getContentBase()
public const int getContentLength()
public const Data & getContentType()
public const Data & getCSeq()
public const bool getFirstWordUnknown()
public const const Data & getHeaders()
public const const Data & getMsgBody()
public Sptr< RtspRangeHdr > getRange()
public const Data & getSessionId()
public Data & getStartLine()
public const Sptr< RtspTcpBuffer > getTransConnPtr()
public Sptr< RtspTransportSpec > getTransport()
public const bool hasBody()
public virtual bool isRequest()
public virtual bool isResponse()
public bool isValid()
public RtspMsg & operator=(const RtspMsg & src)
public void setCompletionFlag(RtspMsgCompletionType flag)
public void setFirstWordUnknown(bool flag)
public void setHasBody(bool has)
public void setHeaders(const Data & hdr)
public void setHeadersMap(u_int32_t hdrType, const HeaderValueData & hvd)
public void setMsgBody(const Data & body)
public void setNumHeader(u_int32_t num)
public void setStartLine(const Data & stline)
public void setTransConnPtr(Sptr< RtspTcpBuffer > ptr)
Association Links |
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |