Microsoft DirectX 8.1 (C++)

IDirectPlay8Address

The IDirectPlay8Address interface contains generic addressing methods used to create and manipulate addresses for Microsoft® DirectPlay® . This interface is one of the interfaces available through the CLSID_DirectPlay8Address COM object.

The IDirectPlay8Address interface contains the following methods.

IDirectPlay8Address Methods BuildFromURLW
  BuildFromURLA
  Duplicate
  SetEqual
  IsEqual
  Clear
  GetURLW
  GetURLA
  GetSP
  GetUserData
  SetSP
  SetUserData
  GetNumComponents
  GetComponentByName
  GetComponentByIndex
  AddComponent
  GetDevice
  SetDevice
  BuildFromDPADDRESS

Remarks

In order to deliver messages, each participant in a multiplayer game must have a unique address. Addresses can refer either to the computer that your application is running on (device address), or a computer that your application needs to communicate with (host address).

DirectPlay represents addresses as URLs. These URLs are then encapsulated in the address object so that they can be passed to or from the DirectPlay API. In general, address URLs are strings that consist of three basic components in the following order: scheme, scheme separator, and data string.

All DirectPlay addresses use "x-directplay" as the scheme, and ":/" as the scheme separator. Using ":/" as a separator implies that the data that follows is opaque. In other words, the data string does not conform to any Internet standard, and should simply be passed on to the receiving application without modification. All DirectPlay URLs thus have the following general form:

x-directplay:/[data string]

There are two basic approaches to handling address objects:

For more information on DirectPlay addresses, see DirectPlay Addressing.

Requirements

  Windows NT/2000/XP: Available as a redistributable for Windows 2000 and later.
  Windows 98/Me: Available as a redistributable for Windows 98 and later.
  Header: Declared in Dpaddr.h.