> ## 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.

# game_chat_data_transport_requirement

> game_chat_data_transport_requirement

# game\_chat\_data\_transport\_requirement

定義傳出資料的資料傳輸需求。

## 語法

```cpp theme={null}
enum class game_chat_data_transport_requirement  
{  
    guaranteed,  
    best_effort,  
}  
```

## 常數

| 常數 | 描述 |
| - | - |
| guaranteed | 資料必須以保證傳遞的方式傳輸。  無論環境中的封包遺失情況為何，都必須保證資料的傳遞，除非目標接收者在傳遞完成之前已從應用程式的網路中移除。不需要依序傳遞。 |
| best\_effort | 資料應以盡力傳遞的方式傳輸。  資料應以最大努力傳送；不過，可接受環境中的封包遺失。不需要依序傳遞。 |

## 備註

此列舉描述 Game Chat 2 中傳出資料框架的資料傳輸需求。您可以從對應 [game\_chat\_data\_frame](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/structs/game_chat_data_frame.md) 結構的 `transport_requirement` 成員，指定或擷取資料框架的資料傳輸需求。

如需處理資料框架的詳細資訊，請參閱[使用 Game Chat 2 C++ API](https://docs.xbox.com/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md) 中的[處理資料框架](https://docs.xbox.com/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md#processing_data_frames)一節。

## 需求

**標頭：** GameChat2.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[Game Chat 2 簡介](https://docs.xbox.com/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)\
[GameChat2 成員](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/gamechat2_members.md)


## Related topics

- [game_chat_data_frame](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/structs/game_chat_data_frame.md)
- [GameChat2 成員 (API 內容)](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/gamechat2_members.md)
- [Game Chat 2 簡介](https://docs.xbox.com/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)
- [使用 Game Chat 2 C++ API](https://docs.xbox.com/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md)
- [process_incoming_data](https://docs.xbox.com/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_process_incoming_data.md)
