HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide
• RTCP control packet APIs
The RTP library provides APIs for retrieving control packets from the library. The
library automatically generates the control packets and sends them to all the
members of the RTP session.
The following lists the RTCP control packet APIs:
— rtcp_recv
— rtcp_free_buf
• RTP I/O control option APIs
The RTP library provides options for setting and retrieving the members of the
active RTP session that can be configured by the application. The library also
provides APIs for configuring these options and retrieving the current option
settings.
You can use the rtp_ioctl API to specify and retrieve options.
• RTP monitoring and RTCP I/O conditions APIs The RTP library provides APIs for
ascertaining the possibility of sending RTP packets and for receiving RTP and
RTCP packets in a particular RTP session, identified by the rd.
The following lists the RTP and RTCP monitoring APIs:
— rtp_poll
— rtcp_poll
• Other APIs
The following lists the other APIs that the RTP library includes:
— rtcp_parse_pkt
— rtcp_free_pkt
RTP Session APIs
RTP session APIs use rd, an integer value, to encapsulate the handling of lower level
protocols (UDP over IP) by the RTP library.
The following lists the APIs that the RTP session module contains:
• rtp_open
You can use rtp_open to initiate a transport session using the UDP transport
protocol.
The declaration of rtp_open is as follows:
# include <rtp.h>
int rtp_open(char *rtp_addr, char *rtcp_addr);
To execute rtp_open, pass the following socket structures as arguments:
20 Using MSP APIs