Repository navigation
xgameruntime: serve XNetworkingImpl (IXNetworkingImpl2) through QueryApiImpl - #2116
Conversation
…ApiImpl
- QueryApiImpl hands out XNetworkingImpl (IXNetworkingImpl2, slots 3-20)
for its class GUID {37e56907-2f10-41e8-b72f-36edb185331a}.
- Serves the slots XCurl.dll calls:
* Slot 15: XNetworkingGetConnectivityHint reports an initialized network
with unrestricted internet access offline.
* Slot 14: XNetworkingVerifyServerCertificate returns S_OK.
* Slots 16 & 17: XNetworkingRegisterConnectivityHintChanged and
XNetworkingUnregisterConnectivityHintChanged manage registration tokens.
* Slots 11-13: Async UTF-16 security information query stubs.
- Updated docs/runtime_imports.md layout table.
- Extended runtime/test/xgameruntime_test.cpp and tiny_gdk_load.cpp
to verify XNetworkingImpl resolution and slot execution.
|
Hi @swam122yam-glitch, I overlapped with this in #2169 (I didn't see yours first, sorry). I've asked the coordinator on #2078 to pick one. One point for whichever lands: reporting |
- Handle IXNetworkingImpl2 query for class {37e56907-2f10-41e8-b72f-36edb185331a}.
- Return offline answers matching console behavior without network:
* Connectivity hint: networkInitialized=true, level=None (1), cost=Unknown (0).
* Port query and URL security queries fail with ERROR_NETWORK_UNREACHABLE.
* Async queries complete through XAsync with ERROR_NETWORK_UNREACHABLE.
* Correct ABI parameter order for AsyncResult:
(async, bufferByteCount, bufferByteCountUsed*, buffer*, information**).
* VerifyServerCertificate fails offline with ERROR_NETWORK_UNREACHABLE.
* Registration tokens are tracked without firing offline.
* IXNetworkingImpl2 extension methods return E_NOTIMPL.
- Update docs and tests in xgameruntime_test and tiny_gdk_load.
|
Thanks @Dom-in and @Flyander for the feedback! Updated in f0c95d4:
|
|
Tested 5f5d6d1 on an NVIDIA GeForce RTX 3050 Laptop GPU, driver 32.0.16.2101, Windows 11, native MSVC (VS 2022 Build Tools, Ninja, RelWithDebInfo), with
AI-assisted (Claude Code). |
|
Tested 5f5d6d1, merged onto
Code read: the served AI-assisted (Claude Code). |
|
Thanks @JRamos1993 for testing and verifying on latest |
|
Tested f0c95d4 (merged onto main 4947579) on NVIDIA GeForce RTX 4060 Ti, driver 610.88 (32.0.16.1088), Windows 11 26200, MSVC 14.51.36231 (VS 2026), Vulkan SDK 1.4.363.0: pass
AI-assisted (Claude). |
|
Thanks @FaKL-Code for testing |
Claimed in the coordination issue as: RT-140
What and why
XCurl.dllcallsXNetworkingImpl(IXNetworkingImpl2, slots 3-20) throughxgameruntime.lib'sQueryApiImplthunks, butQueryApiImplpreviously refused the class.docs/runtime_imports.mdnotedXCurl.dllcalls slots 11-17 and marked it as "Not served yet".This PR implements the singleton
XNetworkingImplobject with offline console semantics:XNetworkingGetConnectivityHint): ReportsnetworkInitialized = truewith levelNone(1) and costUnknown(0) so network-dependent subsystems know the stack is initialized but offline. Rejects null pointer withE_POINTER.XNetworkingVerifyServerCertificate): ReturnsHRESULT_FROM_WIN32(ERROR_NETWORK_UNREACHABLE).XNetworkingQuerySecurityInformationForUrlUtf16Async*) & Slots 8-10 (ANSI): Fail withERROR_NETWORK_UNREACHABLE(*Asynccompletes viaXAsyncRun). Slots 10 and 13 strictly follow Microsoft's parameter order(async, bufferByteCount, bufferByteCountUsed*, buffer*, information**)leaving sentinel buffers untouched and zeroing outputs in place.XNetworkingRegisterConnectivityHintChanged/Unregister): Issues monotonicXTaskQueueRegistrationTokenvalues viastd::atomic<uint64_t>that never fire offline; unregister returnstrue.IXNetworkingImpl2): ReturnsE_NOTIMPL.runtime/test/xgameruntime_test.cpp(71/71 passing checks) and updatedruntime/test/fixtures/tiny_gdk_load.cpp.docs/runtime_imports.mdclass layout table and documentation of offline behavior.Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com