| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Constructor Summary | |
RtspResponse() | |
RtspResponse(Sptr< RtspRequest > rtspRequest, RtspStatusCodesType statusCode) The constructor will create the initial response including statusLine, Cseq and sessionId in myData | |
RtspResponse(const RtspResponse & src) |
Method Summary | |
void | appendConnectionCloseHdr() for TEARDOWN response |
void | appendEndOfHeaders() append the empty line if there is no content data |
void | appendLocationHdr(Sptr< RtspLocationHdr > hdr) for 201 created |
void | appendNPTRangeHdr(double startTime, double endTime) for DESCRIBE response, and PLAY/PAUSE/RECORD response |
void | appendRtpInfoHdr(Sptr< RtspRtpInfoHdr > hdr) |
void | appendSdpData(RtspSdp & sdp) for sdp extracted from a file, it's already encoded it will add contentType and contentLength hdrs |
void | appendSessionId(u_int32_t sessionId) To append new sessionId for SETUP response |
void | appendTransportHdr(Sptr< RtspRequest > theRequest, u_int32_t serverPortA, u_int32_t serverPortB) append the spec which rtspRequest has and add the server ports |
void | appendTransportHdr(Sptr< RtspTransportSpec > spec) append a new spec created by server or application |
virtual Data | encode() |
const u_int32_t | getStatusCode() It triggers the parsing of startline and assign myStatusCode |
const const u_int32_t | getStatusCodeNumber() |
RtspResponse & | operator=(const RtspResponse & src) |
Methods inherited from class rtspstack.RtspMsg |
getCompletionFlag, getContentBase, getContentLength, getContentType, getCSeq, getFirstWordUnknown, getHeaders, getMsgBody, getRange, getSessionId, getStartLine, getTransConnPtr, getTransport, hasBody, isRequest, isResponse, isValid, operator=, setCompletionFlag, setFirstWordUnknown, setHasBody, setHeaders, setHeadersMap, setMsgBody, setNumHeader, setStartLine, setTransConnPtr |
Constructor Detail |
public RtspResponse()
public RtspResponse(Sptr< RtspRequest > rtspRequest, RtspStatusCodesType statusCode)
public RtspResponse(const RtspResponse & src)
Method Detail |
public void appendConnectionCloseHdr()
public void appendEndOfHeaders()
public void appendLocationHdr(Sptr< RtspLocationHdr > hdr)
public void appendNPTRangeHdr(double startTime, double endTime)
public void appendRtpInfoHdr(Sptr< RtspRtpInfoHdr > hdr)
public void appendSdpData(RtspSdp & sdp)
public void appendSessionId(u_int32_t sessionId)
public void appendTransportHdr(Sptr< RtspRequest > theRequest, u_int32_t serverPortA, u_int32_t serverPortB)
public void appendTransportHdr(Sptr< RtspTransportSpec > spec)
public virtual Data encode()
public const u_int32_t getStatusCode()
throws RtspBadDataException
public const const u_int32_t getStatusCodeNumber()
public RtspResponse & operator=(const RtspResponse & src)
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |