次の方法で共有


XblMultiplayerSessionSetMatchmakingServerConnectionPath

特定のサーバー接続文字列の使用を強制します。これは preserveSession=always のケースで有用です。

構文

void XblMultiplayerSessionSetMatchmakingServerConnectionPath(  
         XblMultiplayerSessionHandle handle,  
         const char* serverConnectionPath  
)  

パラメーター

handle _In_
型: XblMultiplayerSessionHandle

マルチプレイヤー セッションへのハンドル。

serverConnectionPath _In_z_
型: char*

サーバー接続パス。 このパスを設定すると、セッションを保持するときに役立つ場合があります。

戻り値

型: void

要件

ヘッダー: multiplayer_c.h

ライブラリ: Microsoft.Xbox.Services.141.GSDK.C.lib

関連項目

multiplayer_c