> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblContextSettingsSetWebsocketTimeoutWindow

> XblContextSettingsSetWebsocketTimeoutWindow

# XblContextSettingsSetWebsocketTimeoutWindow

Web ソケットのタイムアウト ウィンドウを秒単位で設定します。

## 構文

```cpp theme={null}
HRESULT XblContextSettingsSetWebsocketTimeoutWindow(  
         XblContextHandle context,  
         uint32_t timeoutWindowInSeconds  
)  
```

### パラメーター

*context*   \_In\_\
型: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

設定が関連付けられている XBOX Live コンテキスト。

*timeoutWindowInSeconds*   \_In\_\
型: uint32\_t

タイムアウト ウィンドウを秒単位で指定します。既定は 300 秒です。再試行を無効にするには 0 に設定します。

### 戻り値

型: HRESULT

この API 操作の HRESULT 戻り値コード。

## 解説

Web ソケット接続の確立の再試行に費やす時間を制御します。この時間を過ぎると失敗します。

## 要件

**ヘッダー:** xbox\_live\_context\_settings\_c.h

**ライブラリ:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 関連項目

[xbox\_live\_context\_settings\_c](/reference/live/xsapi-c/xbox_live_context_settings_c/xbox_live_context_settings_c_members)


## Related topics

- [XblContextSettingsGetWebsocketTimeoutWindow](/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgetwebsockettimeoutwindow.md)
- [XblContextSettingsSetHttpTimeoutWindow](/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttptimeoutwindow.md)
- [XblContextSettingsGetHttpTimeoutWindow](/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttptimeoutwindow.md)
- [XblContextSettingsSetLongHttpTimeout](/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssetlonghttptimeout.md)
- [XblContextSettingsSetHttpRetryDelay](/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttpretrydelay.md)
