Microsoft SDK for Java

setPlayerData

This method of the DirectPlay2 Class associates an application-specific data block with a player ID.

Syntax

public void setPlayerData(int playerId, byte[] data, int dataSize, int flags);

Parameters

playerId The ID of the player for which data is being set.
data The data to be set. Set this parameter to null to clear any existing player data.
dataSize The size of the data.
flags If this parameter is set to 0, the remote player data will be set and propagated by using nonguaranteed messaging. This parameter can be one or a combination of the following flags:

DPSET_REMOTE
DPSET_LOCAL
DPSET_GUARANTEED


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