HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide
— opt_value
Pointer to a location where the value of the option is returned.
— opt_size
Pointer to a location that contains the size, in bytes, of the data structure present
in the location pointed to by opt_value.
You can retrieve the following options associated with an RTSP connection:
— RTSP_OPT_SOCKET
(int *) retrieves the socket descriptor for the RTSP connection. The opt_size
argument is ignored and is not updated on return.
— RTSP_AF_INET
(rtsp_session_t *) retrieves the associated session for the RTSP connection.
opt_size is ignored and is not updated on return.
Upon success, rtsp_get_conn_opt places the option value in the location
pointed to by opt_value, and places the size of the option value in the location
pointed to by opt_size (unless this argument is ignored). Upon failure,
rtsp_get_conn_opt returns RTSP_EINVAL one of the following error values:
— RTSP_EINVAL
The conn argument is NULL.
◦ The conn argument is NULL.
◦ The value specified by opt_type is invalid.
◦ The opt_value argument is NULL.
◦ The opt_size argument is required and the value specified in the opt_size
argument is invalid.
For more information, type man 3 rtsp_get_conn_opt at the HP-UX command
prompt.
RTSP Call Order Sequence
The RTSP call order sequence is as follows:
1. An application initially creates an RTSP connection structure, rtsp_conn_t,
using either the rtsp_open or the rtsp_create_conn API. It requires the RTSP
connection structure to send and receive RTSP messages. The application may
optionally create and associate sessions using the RTSP session interfaces. For
more information, type man 5 rtsp at the HP-UX command prompt.
2. The application creates a new RTSP message, represented by the rtsp_msg_t
structure, using either the rtsp_init_request_msg or the
rtsp_init_response_msg API.
RTSP Call Order Sequence 63