HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide

rtsp_recv
You can use rtsp_recv to receive an RTSP message or an interleaved media
packet from an RTSP connection.
The declaration of rtsp_close is as follows:
#include <rtsp.h>
rtsp_pckt_type_t rtsp_recv(
rtsp_conn_t *conn,
void *pckt,
int *size,
int *channel
);
You must pass the following arguments to rtsp_recv:
conn
Pointer to a location containing the rtsp_conn_t structure.
pckt
Pointer where the location of the received RTSP message or the interleaved
media packet is returned.
size
Pointer to a location where the length, in bytes, of the interleaved media data
is returned.
channel
Pointer to a location where the channel of the interleaved media data is returned.
Upon success, rtsp_close returns one of the following values:
RTSP_PCKT_REQ_MSG
Successful completion, Received data is an RTSP request message.
RTSP_PCKT_RSP_MSG
Successful completion. Received data is an RTSP response message.
RTSP_PCKT_DATASuccessful completion. Received data is an interleaved media
stream.
System call error. Global variable errno contains the specific error number.
<0
Failure.
Upon failure, rtsp_recv returns one of the following error values:
34 Using MSP APIs