函数
| 函数 | 说明 |
|---|---|
| PFMultiplayerServerPingQosServersAsync | 通过 PFMultiplayerServerListQosServersForTitleAsync 发现 QoS 信标,并通过 UDP/3075 逐一对其执行 ping 操作。汇总延迟并返回排序后的列表。实际耗时上限大约为 ceil(regionCount / maxConcurrentRegions) * timeoutMs * pingsPerRegion,再加上 ListQosServersForTitle 调用的耗时。 |
| PFMultiplayerServerPingQosServersGetResult | 获取成功的 PFMultiplayerServerPingQosServersAsync 调用的结果。 |
| PFMultiplayerServerPingQosServersGetResultSize | 获取存储 PFMultiplayerServerPingQosServersAsync 调用结果所需的字节大小。 |
结构
| 结构 | 说明 |
|---|---|
| PFMultiplayerServerPingQosServersOptions | 控制 QoS 区域 ping 操作的选项。向 PFMultiplayerServerPingQosServersAsync 传递 NULL 可使用下文所述的默认值。 |
| PFMultiplayerServerPingQosServersResult | PFMultiplayerServerPingQosServersAsync 的汇总结果。区域按 latencyMs 升序排列;无法访问的区域 (latencyMs == UINT32_MAX) 排在末尾。 |
| PFMultiplayerServerQosResult | 每个区域的结果行。指针指向调用方提供的结果缓冲区内部,仅当该缓冲区保持有效且未被移动时才有效。 |
