> ## 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-CN/reference/chat/gamechat2/structs/game_chat_data_frame.md) 结构的 `transport_requirement` 成员来指定或检索数据帧的数据传输要求。

有关处理数据帧的更多信息,请参阅 [使用 Game Chat 2 C++ API](https://docs.xbox.com/zh-CN/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md) 中的 [处理数据帧](https://docs.xbox.com/zh-CN/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-CN/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)\
[GameChat2 members](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/gamechat2_members.md)


## Related topics

- [game_chat_data_frame](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/structs/game_chat_data_frame.md)
- [GameChat2 成员（API 内容）](https://docs.xbox.com/zh-CN/reference/chat/gamechat2/gamechat2_members.md)
- [Game Chat 2 简介](https://docs.xbox.com/zh-CN/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)
- [使用 Game Chat 2 C++ API](https://docs.xbox.com/zh-CN/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2.md)
- [XBOX One 软件开发工具包迁移概述](https://docs.xbox.com/zh-CN/build/console-features/networking/xdk-migration/xdk-migration-overview-networking.md)
