XblMultiplayerSessionCurrentUserSetQosMeasurements

为成员设置 XblMultiplayerQosMeasurements 的集合。 仅当游戏在手动管理 QoS 时才有用。 (如果平台自动执行 QoS,则无需调用)

语法

HRESULT XblMultiplayerSessionCurrentUserSetQosMeasurements(  
         XblMultiplayerSessionHandle handle,  
         const char* measurements  
)  

参数

handle _In_
类型:XblMultiplayerSessionHandle

多人游戏会话的句柄。

measurements _In_z_
类型:char*

表示成员的 QoS 测量的 Json。 示例 Json:{ "e69c43a8": { // Device token of peer "latency": 5953, // Milliseconds "bandwidthDown" : 19342, // Kilobits per second "bandwidthUp" : 944, // Kilobits per second "custom" : { } }, ... // additional device tokens }

返回值

类型:HRESULT

此 API 操作的 HRESULT 返回代码。

要求

头文件:multiplayer_c.h

库:Microsoft.Xbox.Services.141.GSDK.C.lib

另请参阅

multiplayer_c