HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide
You must pass the following arguments to rtsp_copy_msg_hdr:
— dst_msg
Pointer to a location containing the rtsp_msg_t structure.
— src_msg
Pointer to a location containing the rtsp_msg_t structure.
— hdr_type
Enumerated RTSP header field type.
Upon success, the existing information for the header in dst_msg is overwritten
with the header information from src_msg.
Upon success, rtsp_copy_msg_hdr returns RTSP_SUCCESS; upon failure, it
returns one of the following error values:
— RTSP_HDR_NOT_IN_MSG
The src_msg argument does not contain the header indicated by the hdr_type
argument.
— <0
Failure.
For more information on enumerated header field types, type man 3
rtsp_copy_msg at the HP-UX command prompt.
• rtsp_append_msg_hdr
You can use rtsp_append_msg_hdr to append the header information in RTSP
request and response messages.
The declaration of rtsp_append_msg_hdr is as follows:
#include <rtsp.h>
rtsp_error_t rtsp_append_msg_hdr(
rtsp_msg_t *msg,
rtsp_hdr_type_t hdr_type,
void *value,
int size
);
You must pass the following arguments to rtsp_append_msg_hdr:
— msg
Pointer to a location containing the rtsp_msg_t structure.
— hdr_type
Enumerated RTSP header field type.
48 Using MSP APIs