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

# XGameStreamingGetClientCount

> XGameStreamingGetClientCount

# XGameStreamingGetClientCount

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

## 구문

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

### 매개 변수

없음

### 반환값

형식: uint32\_t

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

## 설명

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

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

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

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

## 요구 사항

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

## 함께 보기

[XGameStreamingIsStreaming](https://docs.xbox.com/ko/reference/system/xgamestreaming/functions/xgamestreamingisstreaming.md)\
[XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/ko/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)\
[XGameStreamingGetClients](https://docs.xbox.com/ko/reference/system/xgamestreaming/functions/xgamestreaminggetclients.md)\
[XGameStreaming](https://docs.xbox.com/ko/reference/system/xgamestreaming/xgamestreaming_members.md)


## Related topics

- [XGameStreamingGetClients](https://docs.xbox.com/ko/reference/system/xgamestreaming/functions/xgamestreaminggetclients.md)
- [XGameStreamingGetConnectionState](https://docs.xbox.com/ko/reference/system/xgamestreaming/functions/xgamestreaminggetconnectionstate.md)
- [XGameStreaming (API 콘텐츠)](https://docs.xbox.com/ko/reference/system/xgamestreaming/xgamestreaming_members.md)
- [Unity 프로젝트에서 GDK API용 C# 래퍼 사용](https://docs.xbox.com/ko/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XGameStreamingGetClientIPAddress](https://docs.xbox.com/ko/reference/system/xgamestreaming/functions/xgamestreaminggetclientipaddress.md)
