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

# XGameStreamingGetServerLocationName

> XGameStreamingGetServerLocationName

# XGameStreamingGetServerLocationName

스트리밍 서버 데이터 센터 위치의 이름을 가져옵니다.

<a id="syntaxSection" />

## 구문

```cpp theme={null}
HRESULT XGameStreamingGetServerLocationName(
         size_t serverLocationNameSize,
         char* serverLocationName
)
```

<a id="parametersSection" />

### 매개 변수

*serverLocationNameSize*   \_In\_\
형식: size\_t

반환할 데이터 센터 위치 이름의 최대 크기입니다.
`serverLocationNameSize`는 [XGameStreamingGetServerLocationNameSize](/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationnamesize)를 호출하여 가져와야 합니다.

*serverLocationName*   \_Out\_writes\_z\_(serverLocationNameSize)\
형식: char\*

스트리밍 XBOX 서버를 호스팅하는 데이터 센터가 있는 Azure 지역(Azure Region)의 이름입니다.

<a id="retvalSection" />

### 반환 값

형식: HRESULT

성공하면 **S\_OK**를 반환하고, 그렇지 않으면 오류 코드를 반환합니다.

**잠재적 오류**

| 오류 코드                              | 오류 값       | 오류 원인                                                                                                                                                    |
| ---------------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| E\_GAMESTREAMING\_NOT\_INITIALIZED | 0x89245400 | XGameStreaming 런타임이 초기화되지 않았습니다. 다른 API를 호출하기 전에 [XGameStreamingInitialize](/reference/system/xgamestreaming/functions/xgamestreaminginitialize)를 호출하세요. |
| E\_NOT\_SUFFICIENT\_BUFFER         | 0x7A       | *serverLocationSize*가 서버 위치의 전체 이름(및 null 종료 문자)을 담기에 충분하지 않습니다.                                                                                         |
| E\_GAMESTREAMING\_NO\_DATACENTER   | 0x89245403 | 현재 컴퓨터가 데이터 센터에서 실행되고 있지 않습니다.                                                                                                                           |

오류 코드 목록은 [오류 코드](/reference/errorcodes)를 참조하세요.

<a id="remarksSection" />

## 설명

이 함수를 호출하기 전에 [XGameStreamingGetServerLocationNameSize](/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationnamesize)를 호출하여 서버 위치 이름의 크기를 얻은 후 버퍼를 할당할 수 있습니다.

게임이 Azure PlayFab Multiplayer Servers에서 호스팅되는 게임 서버에 연결하고자 하고, 해당 게임 서버와의 지연 시간을 최소화하려는 경우 Azure 지역을 활용할 수 있습니다.

`E_GAMESTREAMING_NO_DATACENTER` 오류는 플레이어가 콘솔 스트리밍을 사용하여 자신의 홈 XBOX에서 게임을 스트리밍할 때 발생할 수 있습니다. 이 오류는 XBOX 개발자 키트에서 재정의 값을 설정하지 않은 경우에도 발생할 수 있습니다.

XBOX 개발자 키트에서는 **Developer Home**의 **Streaming** 탭에서 테스트 중에 반환되어야 하는 `serverLocationName`을 설정할 수 있습니다.

<a id="requirementsSection" />

## 요구 사항

**헤더:** xgamestreaming.h

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

**지원 플랫폼:** Windows, XBOX One 계열 콘솔 및 XBOX Series 콘솔

<a id="seealsoSection" />

## 함께 보기

[XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members)\
[XGameStreamingGetServerLocationNameSize](/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationnamesize)


## Related topics

- [XGameStreamingGetServerLocationNameSize](/ko/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationnamesize.md)
- [XGameStreaming](/ko/reference/system/xgamestreaming/xgamestreaming_members.md)
- [XBOX Game Streaming을 위한 게임 최적화](/ko/build/core-features/common/game-streaming/game-streaming-optimizing-your-game.md)
- [GDK용 Unity C# API 래퍼](/ko/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XGameStreamingGetTouchBundleVersionNameSize](/ko/reference/system/xgamestreaming/functions/xgamestreaminggettouchbundleversionnamesize.md)
