HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide
— msg
Pointer to a location containing the rtsp_msg_t structure.
— body
Pointer to a location containing the body of the RTSP message.
— content_len
Length, in bytes, of the message body.
The rtsp_set_msg_body function overwrites the body of an RTSP message with
the specified value and sets the content length header in the RTSP message to the
value specified by the content_len argument. If the body argument is NULL, the
message body, if any, is removed and the content length header information in
the message is also removed.
Upon success, rtsp_set_msg_body returns RTSP_SUCCESS; upon failure, it
returns one of the following error values:
— RTSP_EINVAL
◦ The msg argument is NULL.
◦ The body argument is not NULL, but the content_len argument contains an
invalid value.
— RTSP_ENOMEM
Dynamic memory allocation failure.
For more information, type man 3 rtsp_set_msg_body at the HP-UX command
prompt.
• rtsp_get_msg_body
To retrieve the body of an RTSP message, use rtsp_get_msg_body. The
declaration of rtsp_get_msg_body is as follows:
#include <rtsp.h>
rtsp_error_t rtsp_get_msg_body(
rtsp_msg_t *msg,
uint8_t *body,
uint16_t *content_len
);
You must pass the following arguments to rtsp_get_msg_body:
50 Using MSP APIs