Packages
 In this topic

*Fields

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Class DPCaps

public final class DPCaps
{
  // Fields
  public int flags;
  public int headerLength;
  public int hundredBaud;
  public int latency;
  public int maxBufferSize;
  public int maxLocalPlayers;
  public int maxPlayers;
  public int maxQueueSize;
  public int timeOut;
}

Contains the capabilities of a DirectPlay object after a call to the getCaps or getPlayerCaps methods. Any of these capabilities may differ depending on whether guaranteed or non-guaranteed capabilities are requested. This class is read-only.

See also DirectPlay2, send.

Fields

flags
One or more values of DPCAPS_ type, indicating the properties of the DirectPlay object.
headerLength
Size, in bytes, of the header that will be added to player messages by this DirectPlay object. Note that the header size depends on which service provider is in use.
hundredBaud
Bandwidth specified in multiples of one hundred bits per second. For example, a value of 24 specifies 2400 baud.
latency
Latency estimate by the service provider, in milliseconds. If this value is 0, DirectPlay cannot provide an estimate. Accuracy for some service providers rests on application-to-application testing, taking into consideration the average message size. Latency may differ depending on whether the application is interested in guaranteed or non-guaranteed message delivery.
maxBufferSize
Maximum number of bytes that can be sent in a single packet by this service provider. Larger messages will be sent using more than one packet.
maxLocalPlayers
Maximum number of local players supported in a session.
maxPlayers
Maximum number of local and remote players supported in a session by this DirectPlay object.
maxQueueSize
This field is no longer used.
timeOut
Service provider's suggested timeout value. By default, DirectPlay will use this timeout value when waiting for replies to messages.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.