Platform SDK: TAPI

IMcastAddressAllocation

IMcastAddressAllocation is the main interface for multicast address allocation. An application calls the COM CoCreateInstance function on this interface to create the multicast client interface object.

Methods in Vtable Order

IUnknown Methods

IDispatch Methods

IMcastAddressAllocation methods Description
get_Scopes Gets VARIANT collection of IMcastScope pointers.
EnumerateScopes Creates an enumeration of multicast scopes interfaces available.
RequestAddress Obtains a new lease for one or more multicast addresses.
RenewAddress Renews an address lease.
ReleaseAddress Releases a lease that was obtained previously.
CreateLeaseInfo Creates a lease information object.
CreateLeaseInfoFromVariant Creates a lease information object. Similar to CreateLeaseInfo, but used by Automation client languages such as Visual Basic.

Remarks

The multicast COM interfaces allow access to the network's facility for allocating, renewing, and releasing leases on multicast addresses. They encapsulate a set of Win32 functions and data structure definitions. The COM interfaces free the programmer from the burden of understanding and manipulating these data structures. Moreover, because TAPI 3.0 itself is COM-based, these interfaces make multicast address allocation accessible in a way that is consistent with the other facilities provided by TAPI 3.0. Applications written using Visual Basic®, Java, or scripting languages must use these COM interfaces—they cannot normally access the Win32 API directly.

In addition, this component provides seamless and transparent support for local address allocation for non-multicast environments. The DWORD registry value HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\MCAST\LocalAllocation, when set to a nonzero value, specifies that random number generation performed on the local machine is to be used for the allocation of all multicast addresses. This allows applications to function the same way on a network without a multicast address allocation server as they would on a network with a multicast address allocation server. If the registry value is set to zero or does not exist, this component performs normally as described in the rest of this specification. Note that local address allocation is never used unless this registry key is set to a nonzero value; local address allocation is not a fallback mechanism for a temporarily inaccessible multicast address allocation server.

Multicast address allocation is currently the subject of an IETF working group. To access current information, query on "Internet draft" and "MDHCP" or "MADCAP" using any Internet search engine. In addition to MADCAP (previously called MDHCP), the proposed architecture includes a protocol for server-to-server coordination within a domain or AS, as well as a protocol for interdomain coordination. While this architecture is currently evolving, the client need not concern itself with the details of this scheme.

This component currently supports only IP version 4 addresses.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Version: Requires TAPI 3.0 or later.
  Header: Declared in Mdhcp.h.
  Library: Use Mdhcpid.lib.

See Also

IMcastLeaseInfo, IMcastScope