> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/types_c/handles/xblcontexthandle.md)

設定が関連付けられている 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](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/xbox_live_context_settings_c_members.md)


## Related topics

- [xbox_live_context_settings_c](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/xbox_live_context_settings_c_members.md)
- [XblContextSettingsGetWebsocketTimeoutWindow](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgetwebsockettimeoutwindow.md)
- [XblContextSettingsSetHttpTimeoutWindow](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttptimeoutwindow.md)
- [XblContextSettingsGetHttpTimeoutWindow](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttptimeoutwindow.md)
- [XblContextSettingsSetLongHttpTimeout](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssetlonghttptimeout.md)
