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

# XGameStreamingConnectionState

> XGameStreamingConnectionState

# XGameStreamingConnectionState

Contains the connection states for a streaming client device.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
enum class XGameStreamingConnectionState  : uint32_t
{
    Disconnected = 0,
    Connected = 1
}
```

<a id="constantsSection" />

## Constants

| Constant     | Description                                  |
| ------------ | -------------------------------------------- |
| Disconnected | The client device is currently disconnected. |
| Connected    | The client device is currently connected.    |

<a id="remarksSection" />

## Remarks

A device can be in either a `Connected` or a `Disconnected` state.

The [XGameStreamingClientChangedCallback](/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback) is invoked whenever a streaming device connects or disconnects.

Upon registering via [XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged), the callback is invoked for any device that is already connected.

<a id="requirementsSection" />

## Requirements

**Header:** xgamestreaming.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

<a id="seealsoSection" />

## See also

[XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members)\
[XGameStreamingClientChangedCallback](/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback)\
[XGameStreamingUnregisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingunregisterconnectionstatechanged)\
[XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged)


## Related topics

- [XGameStreamingConnectionStateChangedCallback](/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback.md)
- [XGameStreamingIsStreaming](/reference/system/xgamestreaming/functions/xgamestreamingisstreaming.md)
- [XGameStreamingGetConnectionState](/reference/system/xgamestreaming/functions/xgamestreaminggetconnectionstate.md)
- [XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)
- [XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members.md)
