HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide

msg
Pointer to a location containing an RTSP request message.
url
Pointer to a location where the URL in the message is returned.
len
Length, in bytes, of the location pointed by the url argument.
Upon success, rtsp_get_msg_request_line returns the method of the RTSP
message in the form of an enumerated method code; upon failure, it returns
RTSP_EINVAL in any of the following cases:
The msg argument is NULL.
The url argument is not NULL and the len argument contains an invalid value.
The location pointed to by the msg argument does not contain an RTSP request
message.
See Table 2-3 (page 39) for information on method values.
For more information, type man 3 rtsp_get_msg_request_line at the HP-UX
command prompt.
rtsp_set_msg_response_line
You can use rtsp_set_msg_response_line to set the status code and reason
phrase information in an RTSP response message.
The declaration of rtsp_set_msg_response_line is as follows:
#include <rtsp.h>
rtsp_error_t rtsp_set_msg_response_line(
rtsp_msg_t *msg,
int status,
uint8_t *reason_phrase
);
You must pass the following arguments to rtsp_set_msg_response_line:
msg
Pointer to a location containing an RTSP response message.
status
Integer status code to be set in the message.
reason_phrase
Pointer to a location containing the NULL terminated reason phrase to be set
in the message. If the reason_phrase argument is NULL, then the API uses the
reason phrase corresponding to the status code.
RTSP Library 43