Writes the mandatory session description fields v, o, and s to the output buffer, using the IPV6 address for origin field o.
uint32_t mccdSdpAddSessionIP6 ( 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 an SDP message as you create its components. |
username |
Pointer to the origin user name. |
id |
Session identifier. |
version |
Session version. |
addr |
Pointer to the origin IPV6 address. |
mccdSdpAddSessionIP6 returns either MCCSDP_OK (function completed successfully) or MCCSDP_MEMORY_ERROR.
This example:
mccdSdpAddSessionIP6 ( pc, "user", "fe80::1" );
creates the following SDP output:
v=0
o=user 123 124 IN IP6 fe80::1)
s=-