How To: Join an In-Progress Game
Describes how to enable the AllowJoinInProgress property to make an in-progress game available to peers searching for available sessions.
Joining an In-Progress Game
To join an in-progress game
int maximumGamers = 8; int privateGamerSlots = 2; int maximumLocalPlayers = 1; // Create the session session = NetworkSession.Create( NetworkSessionType.SystemLink, maximumLocalPlayers, maximumGamers, privateGamerSlots, sessionProperties ); session.AllowJoinInProgress = true;
In the NetworkSession.GamerJoined event handler, the gamer may be a player who joined an in-progress game.
Associate any data necessary to enable a gamer to join while the game is in-progress.
|Network sessions of type NetworkSessionType.Ranked cannot be made join-in-progress, due to the competive nature of ranked sessions.|