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

# XNetworking (API 內容)

> XNetworking

# XNetworking

包含下列功能的方法：

* 擷取本機多人遊戲的慣用網路連接埠。
* 從網路安全性允許清單 (NSAL) 擷取憑證指紋清單。

## 函式

| 函式 | 描述 |
| - | - |
| [XNetworkingConnectivityHintChangedCallback](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingconnectivityhintchangedcallback.md) | 在連線提示結構變更時呼叫。 |
| [XNetworkingGetConnectivityHint](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkinggetconnectivityhint.md) | 查詢目前網路連線層級、數據限制、介面類型和網路初始化狀態的整個裝置資訊。 |
| [XNetworkingPreferredLocalUdpMultiplayerPortChangedCallback](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingpreferredlocaludpmultiplayerportchangedcallback.md) | 在慣用本機多人遊戲連接埠變更時呼叫。 |
| [XNetworkingQueryConfigurationSetting](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingqueryconfigurationsetting.md) | 擷取指定網路組態設定的數值。 |
| [XNetworkingQueryPreferredLocalUdpMultiplayerPort](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingquerypreferredlocaludpmultiplayerport.md) | 取得用於多人遊戲流量的慣用本機 UDP 連接埠。 |
| [XNetworkingQueryPreferredLocalUdpMultiplayerPortAsync](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingquerypreferredlocaludpmultiplayerportasync.md) | 以非同步方式取得用於多人遊戲流量的慣用本機 UDP 連接埠。 |
| [XNetworkingQueryPreferredLocalUdpMultiplayerPortAsyncResult](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingquerypreferredlocaludpmultiplayerportasyncresult.md) | 取得 QueryPreferredLocalUdpMultiplayerPortAsync 呼叫的結果。 |
| [XNetworkingQuerySecurityInformationForUrlAsync](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync.md) | 擷取與在 Universal Developer Portal 中為已啟用 XBOX Live 的遊戲所設定之 URL 相關聯的其他安全性資訊。 |
| [XNetworkingQuerySecurityInformationForUrlAsyncResult](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult.md) | 取得 XNetworkingQuerySecurityInformationForUrlAsync 函式的結果。 |
| [XNetworkingQuerySecurityInformationForUrlAsyncResultSize](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresultsize.md) | 取得 QueryThumbprintsForUrlAsync 呼叫的結果緩衝區大小。 |
| [XNetworkingQuerySecurityInformationForUrlUtf16Async](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async.md) | 擷取與在 Universal Developer Portal 中為已啟用 XBOX Live 的遊戲所設定之 URL 相關聯的安全性資訊。 |
| [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult.md) | 取得 XNetworkingQuerySecurityInformationForUrlUtf16Async 函式的緩衝區結果。 |
| [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresultsize.md) | 取得 XNetworkingQuerySecurityInformationForUrlUtf16Async 函式的結果緩衝區大小。 |
| [XNetworkingQueryStatistics](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingquerystatistics.md) | 將指定的網路統計資料擷取至呼叫端提供的緩衝區。 |
| [XNetworkingRegisterConnectivityHintChanged](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingregisterconnectivityhintchanged.md) | 為遊戲註冊目前網路連線層級、數據限制、介面類型和網路初始化狀態之整個裝置資訊的變更。 |
| [XNetworkingRegisterPreferredLocalUdpMultiplayerPortChanged](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingregisterpreferredlocaludpmultiplayerportchanged.md) | 註冊在慣用本機 UDP 多人遊戲連接埠變更時要呼叫的回呼函式。 |
| [XNetworkingSetConfigurationSetting](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingsetconfigurationsetting.md) | 將指定的網路組態設定修改為提供的數值。 |
| [XNetworkingUnregisterConnectivityHintChanged](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingunregisterconnectivityhintchanged.md) | 取消註冊先前使用 XNetworkingRegisterConnectivityHintChanged 註冊的回呼函式。 |
| [XNetworkingUnregisterPreferredLocalUdpMultiplayerPortChanged](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingunregisterpreferredlocaludpmultiplayerportchanged.md) | 取消註冊先前使用 RegisterPreferredLocalUdpMultiplayerPortChanged 註冊的回呼函式。 |
| [XNetworkingVerifyServerCertificate](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingverifyservercertificate.md) | 提供額外的憑證鏈結驗證。 |

## 結構

| 結構 | 描述 |
| - | - |
| [XNetworkingConnectivityHint](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/structs/xnetworkingconnectivityhint.md) | 定義目前整個裝置的網路狀態，包括網路連線層級、數據限制、介面類型和網路初始化狀態。 |
| [XNetworkingSecurityInformation](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/structs/xnetworkingsecurityinformation.md) | 定義為特定 URL 端點設定 HTTP 堆疊時所使用的安全性資訊。 |
| [XNetworkingStatisticsBuffer](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/structs/xnetworkingstatisticsbuffer.md) | 宣告緩衝區空間的等位，可容納使用 XNetworkingQueryStatistics 查詢網路統計資料時傳回的所有可能輸出結構類型。 |
| [XNetworkingTcpQueuedReceivedBufferUsageStatistics](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/structs/xnetworkingtcpqueuedreceivedbufferusagestatistics.md) | 使用 XNetworkingQueryStatistics 查詢網路統計資料，並指定 TitleTcpQueuedReceivedBufferUsage、SystemTcpQueuedReceivedBufferUsage 或 ToolsTcpQueuedReceivedBufferUsage XNetworkingStatisticsType 值時所傳回的輸出結構。 |
| [XNetworkingThumbprint](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/structs/xnetworkingthumbprint.md) | 定義憑證類型、指紋和指紋大小。 |

## 列舉

| 列舉 | 描述 |
| - | - |
| [XNetworkingConfigurationSetting](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting.md) | 搭配 XNetworkingSetConfigurationSetting 或 XNetworkingQueryConfigurationSetting 使用的設定類型。 |
| [XNetworkingConnectivityCostHint](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/enums/xnetworkingconnectivitycosthint.md) | 定義裝置的數據限制分類提示。 |
| [XNetworkingConnectivityLevelHint](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/enums/xnetworkingconnectivitylevelhint.md) | 定義裝置的連線層級提示。 |
| [XNetworkingStatisticsType](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/enums/xnetworkingstatisticstype.md) | 搭配 XNetworkingQueryStatistics 使用的統計資料類型。 |
| [XNetworkingThumbprintType](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/enums/xnetworkingthumbprinttype.md) | 定義遊戲中使用的憑證指紋類型。 |


## Related topics

- [XNetworkingConnectivityHintChangedCallback](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingconnectivityhintchangedcallback.md)
- [XNetworkingRegisterConnectivityHintChanged](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingregisterconnectivityhintchanged.md)
- [XNetworkingPreferredLocalUdpMultiplayerPortChangedCallback](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingpreferredlocaludpmultiplayerportchangedcallback.md)
- [XNetworkingRegisterPreferredLocalUdpMultiplayerPortChanged](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingregisterpreferredlocaludpmultiplayerportchanged.md)
- [XNetworkingQuerySecurityInformationForUrlAsync](https://docs.xbox.com/zh-TW/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync.md)
