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

# XNetworking

> XNetworking

# XNetworking

Contains methods for the following features:

* Retrieving the preferred networking port for local multiplayer.
* Retrieving the list of certificate thumbprints from the Network Security Allow List (NSAL).

## Functions

| Function                                                                                                                                                                   | Description                                                                                                                                                    |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [XNetworkingConnectivityHintChangedCallback](/reference/networking/xnetworking/functions/xnetworkingconnectivityhintchangedcallback)                                       | Gets called when the connectivity hint structure is changed.                                                                                                   |
| [XNetworkingGetConnectivityHint](/reference/networking/xnetworking/functions/xnetworkinggetconnectivityhint)                                                               | Queries for device-wide information about the current network connectivity level, data limits, interface type, and network initialization state.               |
| [XNetworkingPreferredLocalUdpMultiplayerPortChangedCallback](/reference/networking/xnetworking/functions/xnetworkingpreferredlocaludpmultiplayerportchangedcallback)       | Gets called when the preferred local multiplayer port is changed.                                                                                              |
| [XNetworkingQueryConfigurationSetting](/reference/networking/xnetworking/functions/xnetworkingqueryconfigurationsetting)                                                   | Retrieves the specified networking configuration setting's numeric value.                                                                                      |
| [XNetworkingQueryPreferredLocalUdpMultiplayerPort](/reference/networking/xnetworking/functions/xnetworkingquerypreferredlocaludpmultiplayerport)                           | Gets the preferred local UDP port to use for multiplayer traffic.                                                                                              |
| [XNetworkingQueryPreferredLocalUdpMultiplayerPortAsync](/reference/networking/xnetworking/functions/xnetworkingquerypreferredlocaludpmultiplayerportasync)                 | Gets the preferred local UDP port to use for multiplayer traffic asynchronously.                                                                               |
| [XNetworkingQueryPreferredLocalUdpMultiplayerPortAsyncResult](/reference/networking/xnetworking/functions/xnetworkingquerypreferredlocaludpmultiplayerportasyncresult)     | Gets the results from a QueryPreferredLocalUdpMultiplayerPortAsync call.                                                                                       |
| [XNetworkingQuerySecurityInformationForUrlAsync](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync)                               | Retrieves additional security information associated with a URL configured in the Universal Developer Portal for XBOX Live-enabled titles.                     |
| [XNetworkingQuerySecurityInformationForUrlAsyncResult](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult)                   | Gets the results from the XNetworkingQuerySecurityInformationForUrlAsync function.                                                                             |
| [XNetworkingQuerySecurityInformationForUrlAsyncResultSize](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresultsize)           | Gets the size of the results buffer from a QueryThumbprintsForUrlAsync call.                                                                                   |
| [XNetworkingQuerySecurityInformationForUrlUtf16Async](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16async)                     | Retrieves security information associated with an URL as configured in the Universal Developer Portal for XBOX Live enabled titles.                            |
| [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResult](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresult)         | Gets the buffer results from the XNetworkingQuerySecurityInformationForUrlUtf16Async function.                                                                 |
| [XNetworkingQuerySecurityInformationForUrlUtf16AsyncResultSize](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlutf16asyncresultsize) | Gets the size of the result buffer from the XNetworkingQuerySecurityInformationForUrlUtf16Async function.                                                      |
| [XNetworkingQueryStatistics](/reference/networking/xnetworking/functions/xnetworkingquerystatistics)                                                                       | Retrieves the specified networking statistics into a caller provided buffer.                                                                                   |
| [XNetworkingRegisterConnectivityHintChanged](/reference/networking/xnetworking/functions/xnetworkingregisterconnectivityhintchanged)                                       | Registers title to changes in device-wide information about current network connectivity level, data limits, interface type, and network initialization state. |
| [XNetworkingRegisterPreferredLocalUdpMultiplayerPortChanged](/reference/networking/xnetworking/functions/xnetworkingregisterpreferredlocaludpmultiplayerportchanged)       | Registers a callback function to call when the preferred local UDP multiplayer port changes.                                                                   |
| [XNetworkingSetConfigurationSetting](/reference/networking/xnetworking/functions/xnetworkingsetconfigurationsetting)                                                       | Modifies a specified networking configuration setting to the provided numeric value.                                                                           |
| [XNetworkingUnregisterConnectivityHintChanged](/reference/networking/xnetworking/functions/xnetworkingunregisterconnectivityhintchanged)                                   | Unregisters a callback function that was registered with XNetworkingRegisterConnectivityHintChanged.                                                           |
| [XNetworkingUnregisterPreferredLocalUdpMultiplayerPortChanged](/reference/networking/xnetworking/functions/xnetworkingunregisterpreferredlocaludpmultiplayerportchanged)   | Unregisters a callback function that was registered with RegisterPreferredLocalUdpMultiplayerPortChanged.                                                      |
| [XNetworkingVerifyServerCertificate](/reference/networking/xnetworking/functions/xnetworkingverifyservercertificate)                                                       | Provides additional certificate chain validation.                                                                                                              |

## Structures

| Structure                                                                                                                                        | Description                                                                                                                                                                                                                                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [XNetworkingConnectivityHint](/reference/networking/xnetworking/structs/xnetworkingconnectivityhint)                                             | Defines the current device-wide state of the network, including network connectivity level, data limits, interface type, and network initialization state.                                                                                                            |
| [XNetworkingSecurityInformation](/reference/networking/xnetworking/structs/xnetworkingsecurityinformation)                                       | Defines the security information used in configuring the HTTP stack for a specific URL endpoint.                                                                                                                                                                      |
| [XNetworkingStatisticsBuffer](/reference/networking/xnetworking/structs/xnetworkingstatisticsbuffer)                                             | A union declaring buffer space for holding all possible output structure types returned when querying networking statistics with XNetworkingQueryStatistics.                                                                                                          |
| [XNetworkingTcpQueuedReceivedBufferUsageStatistics](/reference/networking/xnetworking/structs/xnetworkingtcpqueuedreceivedbufferusagestatistics) | The output structure returned when querying networking statistics with XNetworkingQueryStatistics and the TitleTcpQueuedReceivedBufferUsage, SystemTcpQueuedReceivedBufferUsage, or ToolsTcpQueuedReceivedBufferUsage XNetworkingStatisticsType values are specified. |
| [XNetworkingThumbprint](/reference/networking/xnetworking/structs/xnetworkingthumbprint)                                                         | Defines the certificate type, thumbprint, and thumbprint size.                                                                                                                                                                                                        |

## Enumerations

| Enumeration                                                                                                  | Description                                                                                            |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
| [XNetworkingConfigurationSetting](/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting)   | Setting types for use with XNetworkingSetConfigurationSetting or XNetworkingQueryConfigurationSetting. |
| [XNetworkingConnectivityCostHint](/reference/networking/xnetworking/enums/xnetworkingconnectivitycosthint)   | Defines data-limit classification hints for a device.                                                  |
| [XNetworkingConnectivityLevelHint](/reference/networking/xnetworking/enums/xnetworkingconnectivitylevelhint) | Defines connectivity level hints for a device.                                                         |
| [XNetworkingStatisticsType](/reference/networking/xnetworking/enums/xnetworkingstatisticstype)               | Statistics types for use with XNetworkingQueryStatistics.                                              |
| [XNetworkingThumbprintType](/reference/networking/xnetworking/enums/xnetworkingthumbprinttype)               | Defines types of certificate thumbprints used in a title.                                              |
