HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide
— RTSP_ESYS
System call error. Global variable errno contains the specific error number.
— RTSP_ENAMRESOLV
Name resolution error.
• rtsp_create_conn
To create an RTSP connection, use rtsp_create_conn.
The declaration of rtsp_create_conn is as follows:
#include <rtsp.h>
rtsp_error_t rtsp_create_conn(
int sockd,
rtsp_conn_t **conn
);
The rtsp_create_conn function dynamically allocates memory for a new
rtsp_conn_t structure and stores the socket descriptor identified by the sockd
argument in the new rtsp_conn_t structure. The sockd argument must contain
a connected SOCK_STREAM socket. The address of the new rtsp_conn_t
structure is returned in the location pointed to by the conn argument. You must
initialize the location pointed to by the conn argument to NULL before calling
the function.
You must pass the following arguments to rtsp_create_conn:
— sockd
Socket descriptor identifying the transport connection to the peer.
— conn
Pointer where the location for the new RTSP connection is returned.
Upon success, the rtsp_create_conn API returns RTSP_SUCCESS, and the
pointer to the new rtsp_conn_t structure is retuned in the location pointed to
by the conn argument. Upon failure, rtsp_create_conn returns one of the
following error values:
— RTSP_EINVAL
◦ The sockd argument does not contain a SOCK_STREAM socket.
◦ The conn argument is NULL.
◦ The location pointed to by the conn argument is not NULL.
— RTSP_ENOMEM
Dynamic memory allocation failure.
— RTSP_ESYS
System call error. Global variable errno contains the specific error number.
RTSP Library 33