Microsoft SDK for Java

DirectPlay2 Class Methods

The DirectPlay2 Class contains the following methods:

addPlayerToGroup adds an existing player to an existing group.
close closes a previously opened session.
create creates a DirectPlay object.
createGroup creates a logical group of players in the current session.
createPlayer creates a local player for the current session.
deletePlayerFromGroup removes a player from a group.
destroyGroup deletes a group from the session.
destroyPlayer deletes a player from the session, removes any pending messages destined for that player from the message queue, and removes the player from any groups to which that player belonged.
enumGroupPlayers enumerates all the players of a particular group existing in the current session.
enumGroups enumerates the groups available to a session.
enumPlayers enumerates the players in a session. Use the stopEnumPlayers method to stop the enumeration.
enumServiceProviders enumerates the DirectPlay service providers installed on the system.
enumSessions enumerates the sessions available to this DirectPlay object.
getCaps retrieves the capabilities of this DirectPlay object.
getGroupData retrieves data for a group of players.
getGroupFormalName retrieves the formal name associated with the group.
getGroupFriendlyName retrieves the friendly name associated with the group.
getMessageCount queries for the number of messages in a specific local player's message receive queue.
getPlayerAddress retrieves the DirectPlay address for a player.
getPlayerAddressSize retrieves the DirectPlay address size for a player.
getPlayerCaps obtains the current capabilities of a specified player.
getPlayerData retrieves player data for the specified player ID.
getPlayerFormalName obtains the formal name associated with a player.
getPlayerFriendlyName obtains the friendly name associated with a player.
getSessionDesc retrieves a description of the specified session.
initialize initializes the DirectPlay2 object.
open establishes a gaming session instance.
receive retrieves a message from the message queue.
receiveSize retrieves the size of the message data associated with the next or specified message on the message queue.
send sends messages to other players, to a group of players, or to all players in the session.
setGroupData sets data for the group specified by the group ID.
setGroupName sets the name of a group after it has been created.
setPlayerData associates an application-specific data block with a player ID.
setPlayerName sets the name of the player after it has been changed.
setSessionDesc is currently not supported.
stopEnumGroupPlayers stops a group players enumeration.
stopEnumGroups stops a group enumeration.
stopEnumPlayers stops a players enumeration.
stopEnumServiceProviders stops a service provider enumeration.
stopEnumSessions stops a session enumeration.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.