Microsoft SDK for Java

setConnectionSettings

This method of the DirectPlayLobby Class modifies the connection settings needed to start and connect an application.

Syntax

public void setConnectionSettings(int applicationId, int connectionFlags, DPSessionDesc sessionDesc, _Guid sessionGuid, _Guid applicationGuid, String sesionName, String password, String playerShortName, String playerLongName, _Guid spGuid, byte[] addressData, int addressSize);

Parameters

applicationId When this method is called from a lobby client that communicates with several applications, applicationId identifies which application connection settings to retrieve.
connectionFlags Indicates how the connection should be made. This parameter can be one of the following flags:

DPLCONNECTION_CREATESESSION

Creates a new session as described in the session description.

DPLCONNECTION_JOINSESSION

Joins the existing session as described in the session description.

sessionDesc A DPSessionDesc object describing the sessions to be enumerated. Only those sessions that meet the criteria set in this class will be enumerated.
sessionGuid The GUID of the DirectPlay session of interest. This parameter must be set to NULL unless the DPENUMPLAYERS_SESSION flag is specified.
applicationGuid The application GUID.
sessionName The Unicode string containing the name of the session. Use this member only if the IDirectPlay2 interface is in use.
password The Unicode string containing the password of the session. Use this member only if the IDirectPlay2 interface is in use.
playerShortName The short name that the player should be created with. This will be the name of the person registered in the lobby. The application can ignore this name.
playerLongName The long name that the player should be created with.
spGuid The GUID of the service provider used to connect to the session.
addressData The information that the service provider needs to connect to a session.
addressSize The address data size (in bytes).

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