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

For more information, type man 3 rtsp_init_response_msg at the HP-UX
command prompt.
rtsp_is_request_msg and rtsp_is_response_msg
You can use rtsp_is_request_msg and rtsp_is_response_msg functions
to examine if an RTSP message is a request message or a response message,
respectively.
The declarations of these APIs are as follows:
#include <rtsp.h>
int
rtsp_is_request_msg(
rtsp_msg_t *msg
);
int
rtsp_is_response_msg(
rtsp_msg_t *msg
);
You must pass the msg argument, which points to a location that contains the
rtsp_msg_t structure.
If the RTSP message pointed to by the msg argument is an RTSP request message,
rtsp_is_request_msg returns 1. Otherwise, it returns 0.If the RTSP message
pointed to by the msg argument is an RTSP response message,
rtsp_is_response_msg returns 1. Otherwise, it returns 0.
For more information on rtsp_is_request_msg, type man 3
rtsp_is_request_msg at the HP-UX command prompt. For more information
on rtsp_is_response_msg, type man 3 rtsp_is_response_msg at the
HP-UX command prompt.
Request or Response Line Information APIs
You can use the following APIs to set or retrieve the request and response lines of an
RTSP message:
rtsp_set_msg_request_line
You can use rtsp_set_msg_request_line to set the RTSP method and the
URL information in an RTSP message.
The declaration of rtsp_set_msg_request_line is as follows:
#include <rtsp.h>
rtsp_error_t rtsp_set_msg_request_line(
rtsp_msg_t *msg,
rtsp_method_t method,
RTSP Library 41