This method of the DirectPlay2 Class sets the name of the player after it has been changed. A DPSYS_SETPLAYERORGROUPNAME system message will be sent to all other players notifying them of the change, unless DPSESSION_NODATAMESSAGES is set in the session description.
public void setPlayerName(int playerId, String friendlyName, String formalName, int flags);
playerId | The player ID for which data is being sent. |
formalName | The formal name for the player. Use null if the player has no formal name. |
friendlyName | The friendly name for the player. Use null if the player has no friendly name. |
flags | If this parameter is set to 0, the name will be propagated to all the remote systems using nonguaranteed message passing. |
DPMSG_SETPLAYERORGROUPNAME, getPlayerFormalName, getPlayerFriendlyName, send, com.ms.directX.DirectXConstants.DPSET_GUARANTEED