HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide
more information on creating an association between session and connection, see “RTSP
Connection Option APIs” (page 61).
The following lists the RTSP session APIs:
• rtsp_init_session
You can use rtsp_init_session to initialize the members of the
rtsp_session_t structure with the arguments supplied by the application.
The declaration of rtsp_init_session is as follows:
#include <rtsp.h>
rtsp_error_t rtsp_init_session(
char *url,
char *session_id,
rtsp_session_t *session
);
You must use the following arguments to rtsp_init_session:
— url
This is a pointer to a NULL terminated string that contains the session URl.
— session_id
This is a pointer to a NULL terminated string that contains the session ID.
— session
This is a pointer to a rtsp_session_t structure to be initialized.
For more information on rtsp_session_t and its definition, type man 3
rtsp_init_session at the HP-UX command prompt.
Upon success, rtsp_init_session returns RTSP_SUCCESS; upon failure, it
returns one of the following error values:
— RTSP_EINVAL
The session argument is NULL.
— RTSP_ENOMEM
Dynamic memory allocation failure.
• rtsp_free_session_flds
You can use rtsp_free_session_flds to free the resources associated with
the rtsp_session_t structure members.
The declaration of rtsp_free_session_flds is as follows:
#include <rtsp.h>
void rtsp_free_session_flds(
rtsp_session_t *session
);
RTSP Library 37