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

# XGameStreamingGetClientCount

> XGameStreamingGetClientCount

# XGameStreamingGetClientCount

현재 게임을 스트리밍 중인 클라이언트 수를 가져옵니다.

## 구문

```cpp theme={null}
uint32_t XGameStreamingGetClientCount()
```

### 매개 변수

없음

### 반환값

형식: uint32\_t

현재 게임을 스트리밍 중인 클라이언트 수를 반환합니다.

## 설명

현재 게임을 스트리밍 중인 클라이언트 수를 반환합니다. 현재 스트리밍 중인 클라이언트가 없는 경우 이 값은 0일 수 있습니다.

[XGameStreamingGetClients](/reference/system/xgamestreaming/functions/xgamestreaminggetclients) 호출을 위한 메모리를 할당하기 전에 연결된 장치 수를 가져오는 데 이 함수를 사용합니다.

게임이 임의의 장치가 연결되고 스트리밍 중인지만 확인하려는 경우, [XGameStreamingIsStreaming](/reference/system/xgamestreaming/functions/xgamestreamingisstreaming)을 사용하는 것이 좋습니다.

스트리밍 클라이언트가 연결되거나 연결이 끊길 때 알림을 받고자 하는 경우, [XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged)를 사용하는 것이 좋습니다.

## 요구 사항

**헤더:** xgamestreaming.h\
**라이브러리:** xgameruntime.lib\
**지원되는 플랫폼:** Windows, XBOX One 계열 콘솔 및 XBOX Series 콘솔

## 함께 보기

[XGameStreamingIsStreaming](/reference/system/xgamestreaming/functions/xgamestreamingisstreaming)\
[XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged)\
[XGameStreamingGetClients](/reference/system/xgamestreaming/functions/xgamestreaminggetclients)\
[XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members)


## Related topics

- [XGameStreamingGetClients](/ko/reference/system/xgamestreaming/functions/xgamestreaminggetclients.md)
- [XGameStreamingGetConnectionState](/ko/reference/system/xgamestreaming/functions/xgamestreaminggetconnectionstate.md)
- [XGameStreaming](/ko/reference/system/xgamestreaming/xgamestreaming_members.md)
- [GDK용 Unity C# API 래퍼](/ko/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XGameStreamingClientPropertiesChangedCallback](/ko/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback.md)
