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

# XBOX One 软件开发工具包迁移概述

> XBOX One 软件开发工具包迁移概述

## API 对比

下表汇总了 XBOX One 软件开发工具包中提供的网络 API 空间，并给出 Microsoft 游戏开发工具包 (GDK) 中具有相同或类似功能的新 API。有关 Microsoft 游戏开发工具包 (GDK) 中每个 API 的更多信息，请参阅其对应链接。

| 功能 | XBOX One 软件开发工具包 | GDK |
| - | :-: | :-: |
| 一站式解决方案 （网络通信和游戏内聊天） | XBOX Integrated Multiplayer (XIM) 与 Azure PlayFab Party | [Azure PlayFab Party](https://devdocs.xbox.com/zh-CN/build/console-features/networking/game-mesh/playfab-party-intro-networking.md) |
| 网络连接性 | `Windows::Networking::Connectivity` | [XNetworkingGetConnectivityHint](https://devdocs.xbox.com/zh-CN/build/console-features/networking/initialization-connectivity-networking.md) |
| HTTP | `IXMLHttpRequest2` | [XCurl](https://devdocs.xbox.com/zh-CN/build/console-features/networking/web-requests/intro-xcurl.md) 或 [WinHTTP](https://devdocs.xbox.com/zh-CN/build/console-features/networking/web-requests/intro-winhttp.md) |
| WebSockets | `IMessageWebSocket` | [WinHTTP](https://devdocs.xbox.com/zh-CN/build/console-features/networking/web-requests/http-networking.md) |
| Sockets | Winsock | [Winsock](https://devdocs.xbox.com/zh-CN/build/console-features/networking/game-mesh/winsock-intro-networking.md) |
| 套接字安全 | Secure sockets 与 BCrypt | OpenSSL DTLS (Datagram Transport Layer Security) 或 Bcrypt DTLS [(安全游戏通信)](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/game-principles/security/communication-security/communication-security-impl/gc-secure-communication-impl) |
| 端口行为 | 网络清单 | [与 Win32 Windows PC 完全一致](https://devdocs.xbox.com/zh-CN/build/console-features/networking/game-mesh/winsock-intro-networking.md) |
| LAN 穿越 | Secure sockets 与 Azure PlayFab Party | [Azure PlayFab Party](https://devdocs.xbox.com/zh-CN/build/console-features/networking/game-mesh/playfab-party-intro-networking.md) |
| 游戏内聊天 | Game Chat 2 | [Game Chat 2](https://devdocs.xbox.com/zh-CN/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md) |

> [!NOTE]
>
> Winsock、Game Chat 2、BCrypt 和 Azure PlayFab Party 在 Microsoft 游戏开发工具包 (GDK) 中的 API 面几乎与 XBOX One 软件开发工具包中的相同。这些代码部分应该可以直接替换。


## Related topics

- [XBOX One 软件开发工具包迁移指南](https://devdocs.xbox.com/zh-CN/build/console-features/networking/xdk-migration/xdk-migration-toc.md)
- [Microsoft 游戏开发工具包 (GDK) 网络简介](https://devdocs.xbox.com/zh-CN/build/console-features/networking/introduction-networking.md)
- [跨 Xbox One 软件开发工具包/GDK 游戏版本的邀请](https://devdocs.xbox.com/zh-CN/services/xbox-services/multiplayer/invites/concepts/live-multiplayer-xdkinvites.md)
- [Intelligent Delivery：语言修饰符](https://devdocs.xbox.com/zh-CN/build/core-features/common/packaging/intelligentdelivery-language.md)
- [使用 Fiddler 检查 Web 服务调用](https://devdocs.xbox.com/zh-CN/tools/tools-services/live-fiddler-inspect-web-calls.md)
