mccdSdpAddSessionIP4

Writes the mandatory session description fields v, o, and s to the output buffer, using the IPV4 address for origin field o.

Prototype

uint32_t mccdSdpAddSessionIP4 ( MCC_SDP_CONTEXT_W * context, const char * username, uint32_t id, uint32_t version, const char * addr)

Argument

Description

context

Pointer to the MCC_SDP_CONTEXT_W structure that stores the SDP message as you create its components.

username

Pointer to the origin user name.

id

Session identifier.

version

Session version.

addr

Pointer to the IPV4 address.

Return values

mccdSdpAddSessionIP4 returns either MCCSDP_OK (function completed successfully) or MCCSDP_MEMORY_ERROR.

Example

This example:

mccdSdpAddSessionIP4    ( pc, "user", 123, 124, "127.0.0.1" );

creates the following SDP output:

v=0
o=user 123 124 IN IP4 127.0.0.1
s=-