HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide
Upon success, rtsp_set_msg_response_line returns RTSP_SUCCESS; upon
failure, rtsp_set_msg_response_line returns one of the following error
values:
— RTSP_EINVAL
◦ The msg argument is NULL.
◦ The status argument contains an invalid status code.
◦ The location pointed to by the msg argument does not contain a response
message.
— RTSP_ENOMEM
Dynamic memory allocation failure.
For more information, type man 3 rtsp_set_msg_response_line at the
HP-UX command prompt.
• rtsp_get_msg_response_line
You can use rtsp_get_msg_response_line to retrieve the status code and
reason phrase information from an RTSP response message.
The declaration of rtsp_get_msg_response_line is as follows:
#include <rtsp.h>
rtsp_error_t rtsp_get_msg_response_line(
rtsp_msg_t *msg,
uint8_t *reason_phrase,
uint16_t len
);
You must pass the following arguments to rtsp_get_msg_response_line:
— msg
Pointer to a location containing an RTSP response message.
— reason_phrase
Pointer to a location where the reason phrase in the message is returned.
— len
Length, in bytes, of the location pointed to by the reason_phrase argument.
Upon success, rtsp_get_msg_response_line returns the integer status code
of the RTSP response message.Upon failure, rtsp_get_msg_response_line
returns RTSP_EINVAL in any of the following cases:
— The msg argument is NULL.
— The location pointed to by the msg argument does not contain a response
message.
— The reason_phrase argument is not NULL and len argument contains an invalid
value.
44 Using MSP APIs