MCPcopy Create free account
hub / github.com/Barracuda09/SATPI / methodOptions

Method methodOptions

src/RtspServer.cpp:155–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void RtspServer::methodOptions(
156 const std::string &sessionID, const int cseq, std::string &htmlBody) {
157 static const char *RTSP_OPTIONS_OK =
158 "RTSP/1.0 200 OK\r\n" \
159 "CSeq: %1\r\n" \
160 "Public: OPTIONS, DESCRIBE, SETUP, PLAY, TEARDOWN\r\n" \
161 "%2" \
162 "\r\n";
163
164 // check if we are in session, then we need to send the Session ID
165 const std::string sessionIDHeaderField = (sessionID.size() > 2) ?
166 StringConverter::stringFormat("Session: %1\r\n", sessionID) : "";
167
168 htmlBody = StringConverter::stringFormat(RTSP_OPTIONS_OK, cseq, sessionIDHeaderField);
169}
170
171void RtspServer::methodDescribe(
172 const std::string &sessionID, const int cseq, const int streamID, std::string &htmlBody) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected