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 where the body of the RTSP message is returned.
— content_len
Pointer to a location containing the size of the location pointed to by the body
argument.
Ensure that the location pointed to by the content_len argument contains the size
of the buffer in the location pointed to by the body argument before calling
rtsp_get_msg_body. The rtsp_get_msg_body function updates the location
pointed to by the content_len argument with the actual size of the data returned
in the location pointed to by the body argument.
Upon success, rtsp_get_msg_body returns RTSP_SUCCESS; upon failure, it
returns one of the following error values:
— RTSP_EINVAL
◦ The msg argument is NULL.
◦ The content_len argument is NULL.
◦ The body argument is NULL.
◦ The msg argument is NULL.
◦ The location pointed to by the content_len argument contains an invalid
value.
For more information, type man 3 rtsp_get_msg_body at the HP-UX command
prompt.
RTSP Header APIs
You must specify the header information for most of the header types in the form of
strings. However, you can define data structures for certain headers. You can also link
these data structures together to store a list of values.
The following lists the types of RTSP headers:
• Cache control header
• Range header
• RTP-info header
• Transport header
Cache Control Header
The rtsp_cache_t data structure stores information about the cache control header.
The rtsp.h file contains the definition of this data structure and the various enumerated
values as follows:
RTSP Library 51