HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide
You must pass session, a pointer to an rtsp_session_t structure as an argument
to rtsp_free_session_flds.
The rtsp_free_session_flds API does not return a value.
For more information, type man 3 rtsp_free_session_flds at the HP-UX
command prompt.
• rtsp_free_session
You can use rtsp_free_session to free the dynamically allocated memory for
the rtsp_session_t structure and its members.
The declaration of rtsp_free_session is as follows:
#include <rtsp.h>
void rtsp_free_session(
rtsp_session_t *session
);
You must pass session, a pointer to an rtsp_session_t structure to be freed, as
an argument to rtsp_free_session.
The rtsp_free_session API does not return a value.
For more information, type man 3 rtsp_free_session at the HP-UX command
prompt.
RTSP Message APIs
The RTSP message structure, rtsp_msg_t, stores complete information about an RTSP
message: the request or response line, various RTSP header fields, and the message
body.
The following lists the APIs that create and initialize the request and response messages:
• rtsp_init_request_msg
You can use rtsp_init_request_msg to create and initialize an RTSP request
message, and set the method and URL.
The declaration of rtsp_init_request_msg is as follows:
#include <rtsp.h>
rtsp_error_t rtsp_init_request_msg(
rtsp_method_t method,
char *url,
rtsp_msg_t **msg
);
You must use the following arguments to rtsp_init_request_msg:
— method
The method argument specifies an enumerated RTSP method type and can take
one of the valuesdescribed in Table 2-3.
38 Using MSP APIs