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

# XGameStreamingConnectionStateChangedCallback

> XGameStreamingConnectionStateChangedCallback

# XGameStreamingConnectionStateChangedCallback

연결된 스트리밍 클라이언트의 상태가 변경될 때마다 호출되는 콜백 함수입니다.

## 구문

```cpp theme={null}
void XGameStreamingConnectionStateChangedCallback(
         void* context,
         XGameStreamingClientId client,
         XGameStreamingConnectionState state
)
```

### 매개 변수

*context*   \_In\_opt\_\
형식: void\*

이벤트를 구독할 때 제공된 컨텍스트입니다.

*client*   \_In\_\
형식: XGameStreamingClientId

이벤트가 참조하는 클라이언트 스트리밍 장치입니다.

*state*   \_In\_\
형식: [XGameStreamingConnectionState](https://docs.xbox.com/ko/reference/system/xgamestreaming/enums/xgamestreamingconnectionstate.md)

클라이언트의 새 연결 상태입니다.

### 반환값

형식: void

## 설명

`XGameStreamingClientChangedCallback`은 스트리밍 장치가 연결되거나 연결이 끊길 때마다 호출됩니다.

등록 시 이 콜백은 연결된 각 장치에 대해서도 호출됩니다.

[XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/ko/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)를 통해 등록하면 이미 연결된 장치에 대해서도 콜백이 호출됩니다.

## 요구 사항

**헤더:** xgamestreaming.h

**라이브러리:** xgameruntime.lib

**지원되는 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 함께 보기

[XGameStreamingConnectionState](https://docs.xbox.com/ko/reference/system/xgamestreaming/enums/xgamestreamingconnectionstate.md)\
[XGameStreamingUnregisterConnectionStateChanged](https://docs.xbox.com/ko/reference/system/xgamestreaming/functions/xgamestreamingunregisterconnectionstatechanged.md)\
[XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/ko/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)\
[XGameStreaming](https://docs.xbox.com/ko/reference/system/xgamestreaming/xgamestreaming_members.md)


## Related topics

- [XGameStreamingUnregisterConnectionStateChanged](https://docs.xbox.com/ko/reference/system/xgamestreaming/functions/xgamestreamingunregisterconnectionstatechanged.md)
- [XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/ko/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)
- [XGameStreaming (API 콘텐츠)](https://docs.xbox.com/ko/reference/system/xgamestreaming/xgamestreaming_members.md)
- [XGameStreamingUnregisterClientPropertiesChanged](https://docs.xbox.com/ko/reference/system/xgamestreaming/functions/xgamestreamingunregisterclientpropertieschanged.md)
- [XGameStreamingConnectionState](https://docs.xbox.com/ko/reference/system/xgamestreaming/enums/xgamestreamingconnectionstate.md)
