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

# Microsoft Game Development Kit ネットワークの概要

> HTTP、WebSocket、ソケット、チャット、およびゲーム データ向けの GDK ネットワーク API の概要と、ネットワーク初期化およびサスペンド/レジュームに関する要件を解説します。

この記事では、Microsoft Game Development Kit (GDK) のネットワーク スタックについて紹介します。Microsoft Game Development Kit (GDK) タイトル向けのネットワーク スタックおよび利用可能な API は Win32 のネットワーク API に類似しており、既存の Win32 タイトルからの移植を容易にし、より統一的なネットワーク実装を可能にします。

## 利用可能な API

以下の表は、Microsoft Game Development Kit (GDK) の API 空間をまとめたものです。Microsoft Game Development Kit (GDK) の各 API の詳細については、関連リンクを参照してください。

| 機能                                          |                                                                                                                  Microsoft Game Development Kit (GDK)                                                                                                                 |
| ------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| オールインワン ソリューション (ネットワーク ゲーム データおよびゲーム内チャット) |                                                                                      [PlayFab Party](/build/console-features/networking/game-mesh/playfab-party-intro-networking)                                                                                     |
| セキュアなクライアント/サーバー ネットワーク ゲーム データ トランスポート     |                                                                                             [MsQuic](/build/console-features/networking/game-mesh/msquic-intro-networking)                                                                                            |
| REST                                        |                                                                                               [XSAPI](https://developer.microsoft.com/games/xbox/docs/gdk/atoc-xsapi-c)                                                                                               |
| HTTP\*\*                                    |                                                           [xCurl](/build/console-features/networking/web-requests/intro-xcurl) または [WinHTTP](/build/console-features/networking/web-requests/intro-winhttp)                                                           |
| WebSocket\*\*                               |                                            [libHttpClient](/build/console-features/networking/web-requests/http-networking#libhttpclient) (推奨) または [WinHTTP](/build/console-features/networking/web-requests/intro-winhttp)                                           |
| ソケット                                        |                                                                                            [Winsock](/build/console-features/networking/game-mesh/winsock-intro-networking)                                                                                           |
| ソケット セキュリティ                                 | OpenSSL Datagram Transport Layer Security (DTLS) または Bcrypt DTLS [(Secure Game Communication) (NDA 記事)](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/game-principles/security/communication-security/communication-security-impl/gc-secure-communication-impl) |
| ネットワーク接続                                    |                                                                              [XNetworkingGetConnectivityHint](/build/console-features/networking/initialization-connectivity-networking)                                                                              |
| ポートの動作                                      |                                                                                     [Win32 Windows PC と同一](/build/console-features/networking/game-mesh/winsock-intro-networking)                                                                                     |
| ゲーム内チャット                                    |                                         [PlayFab Party](/build/console-features/networking/game-mesh/playfab-party-intro-networking) または [Game Chat 2](/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)                                         |

\*\*: どの API を使用するかを判断する方法については、[Web リクエスト](/build/console-features/networking/web-requests/http-networking) を参照してください。

## 新しい重要な概念

Microsoft Game Development Kit (GDK) のネットワーク API のほぼすべてに当てはまる、新しい 2 つの概念があります。

### ネットワーク初期化

すべてのネットワーク API は、ネットワークが初期化された後でなければ正しく動作しません。タイトルは、いずれかのネットワーク API またはそれに依存するミドルウェアを呼び出す前に、ネットワークの初期化を待機する必要があります。ネットワーク初期化の詳細については、[ネットワーク初期化と接続](/build/console-features/networking/initialization-connectivity-networking) を参照してください。

### サスペンドとレジューム

ネットワーク API から作成されたほぼすべてのネットワーク ハンドルおよびオブジェクトは、タイトルのサスペンド通知時にクリーンアップする必要があります。この方法は各 API 概要ページで説明しています。タイトル本体だけでなく、これらの API を利用するミドルウェアもこのガイダンスに従う必要があります。サスペンド/レジューム全般については、[XBOX Game Life Cycle (NDA 記事)](/build/console-features/console-workflows/xbox-game-life-cycle#responding-to-suspend-and-resume) の概要を参照してください。

サスペンド/レジューム対応のドキュメント:

* [PlayFab Party](/build/console-features/networking/game-mesh/playfab-party-intro-networking#SuspendResume)
* [MsQuic](/build/console-features/networking/game-mesh/msquic-intro-networking#SuspendResume)
* [XCurl](/build/console-features/networking/web-requests/intro-xcurl#title-suspendresume)
* [libHttpClient (HTTP および WebSocket)](/build/console-features/networking/web-requests/http-networking#suspend-and-resume-with-libhttpclient)
* [WinHTTP](/build/console-features/networking/web-requests/intro-winhttp)
* [WinSock](/build/console-features/networking/game-mesh/winsock-intro-networking#SuspendResume)
* [Preferred Local UDP Multiplayer Port](/build/console-features/networking/game-mesh/preferred-local-udp-multiplayer-port-networking#SuspendResume)
* [ネットワーク初期化](/build/console-features/networking/initialization-connectivity-networking#suspend-and-resume)
* [Game Chat 2](/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro#SuspendResume)

## XBOX One Software Development Kit からの移行

以前の XBOX One Software Development Kit ドキュメントから移行するタイトルの詳細については、[XBOX One Software Development Kit 移行概要 (NDA 記事)](/build/console-features/networking/xdk-migration/xdk-migration-overview-networking) を参照してください。この記事には、XBOX One Software Development Kit と GDK タイトル バージョン間の通信を有効にするタイトル向けのガイダンスも含まれます。

## 関連項目

[ネットワーク初期化と接続](/build/console-features/networking/initialization-connectivity-networking)

[Web リクエスト: HTTP と WebSocket](/build/console-features/networking/web-requests/http-networking)

[Windows Sockets](/build/console-features/networking/game-mesh/winsock-intro-networking)

[Game Chat 2](/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)

[PlayFab Party](/build/console-features/networking/game-mesh/playfab-party-intro-networking)

[PlayFab Party Online Subsystem for Unreal](/build/console-features/networking/game-mesh/party-unreal-online-subsystem)

[PlayFab Party SDK for Unity](/build/console-features/networking/game-mesh/party-unity-plugin)

[MsQuic](/build/console-features/networking/game-mesh/msquic-intro-networking)

[XBOX Live API の入門](/services/xbox-services/fundamentals/xbox-services-api/live-gs-xbl-apis)

[Preferred UDP multiplayer port](/build/console-features/networking/game-mesh/preferred-local-udp-multiplayer-port-networking)

[Microsoft Game Development Kit タイトル向けのセキュアなゲーム通信 (NDA 記事)](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/game-principles/security/communication-security/communication-security-impl/gc-secure-communication-impl)


## Related topics

- [Microsoft Game Development Kit のネットワーク ツール](/ja-jp/build/console-features/networking/tools/tools-networking-toc.md)
- [ネットワーク](/ja-jp/build/console-features/networking/gc-networking-toc.md)
- [XDK ネットワークから XBOX GDK への移行](/ja-jp/build/console-features/networking/xdk-migration/index.md)
- [WinHTTP の概要](/ja-jp/build/console-features/networking/web-requests/intro-winhttp.md)
- [XBOX 開発キットでのネットワーク ストレス テスト](/ja-jp/build/console-features/networking/tools/netstress-networking.md)
