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

Figure 2-3 Creating an SDP Packet
sdp_init()
Initialize sdp_t, the sdp
structure
sdp_add*()
Add elements to sdp_t
sdp_parse_buf()
Parse an input buffer
containing SDP descriptions
and Fill up sdp_t
Want to add elements
to sdp_t using APIs?
sdp_create_buf()
Create SDP packet from sdp_t
Process/use the SDP packet
sdp_free()
Free the sdp structure
No
Yes
Parsing an SDP Packet
Figure 2-4 illustrates the call order sequence of APIs that parse an SDP packet.
To parse an SDP packet, use the SDP APIs in the following sequence:
1. sdp_init
2. sdp_parse_buf
3. sdp_get*
4. sdp_free
78 Using MSP APIs