The following diagram shows how an SDP description is created. Note that only mandatory SDP fields are included.
First, the client must create a CSdpDocument
object.
The string pool must be open before use. Predefined SDP constants are
defined in the string table whose handle can be fetched by calling
SdpCodecStringPool::StringPoolL()
. The string table
includes all predefined SDP related constants.
The net type and the address type of the connection and origin field parameters are fetched from the string pool; these are predefined.
The origin field is created with origin field parameters, and is set
into the CSdpDocument
object.
The connection field is created from parameters, and is set into the
CSdpDocument
object.
When you have finished with the SDP description, you delete the
CSdpDocument
object and close the string pool.