XNetworking: wire UDP port change callbacks and UTF-16 security queries #1248
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1248"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by ashrafsdrop on 2026-11-24T16:46:48Z.
Summary
Completes the remaining unimplemented slots in the
XNetworkingCOM-style interface (Methods<18>):UDP Port Change Callbacks (Slots 6 & 7 /
0x30,0x38):register(XNetworkingRegisterPreferredLocalUdpMultiplayerPortChanged) andunregister(XNetworkingUnregisterPreferredLocalUdpMultiplayerPortChanged).3074) is fixed offline, so registration tokens are allocated viatoken()and the callback never needs to fire, avoidingE_NOTIMPLwhen titles register for port changes during startup or socket binding.UTF-16 Security Queries (Slots 11, 12, 13 /
0x58,0x60,0x68):security_info_utf16_asyncforXNetworkingQuerySecurityInformationForUrlUtf16Async, logging wide URLs and completing the async task withUNREACHABLE(0x800704CF), matching the UTF-8 version.security_info_sizeandsecurity_info_resultinto slots0x60and0x68.Tests:
Verification
cargo test -p victory-hlepassed (94 tests, 0 failures).cargo clippy -p victory-hlepassed with zero warnings.cargo run -p xtask -- policyverified (154 files ok).Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T16:56:48Z.
Review: APPROVED
Tested head
64a33ec(fast-forward onmainffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC):cargo test -p victory-hle: 94 passed, 0 failed (plusno_dll_planting: 1 passed)cargo clippy -p victory-hle --all-targets: 0 warningscargo xtask policy: okClean wiring of XNetworking UDP port-change callbacks and UTF-16 security queries. Approving.
AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T17:40:02Z.
Review: APPROVED
Tested
64a33ec7on Windows 11, RTX 5070, MSVC:cargo test -p victory-hlepasses on the head (94 passed).clippy -D warnings(default and all features) are all clean.The change looks right:
XNetworkingRegisterPreferredLocalUdpMultiplayerPortChangedtakes the same (queue, context, callback, token) arguments as the connectivity-hint registration, so reusingregister/unregisterat 0x30/0x38 fits.UNREACHABLEeither way.Nit: the new test has a doubled blank line after the first
Unregisterassert, whichrustfmtwill collapse.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T17:59:27Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
64a33ec:cargo test -p victory-hlepasses, 95 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Imported from Marvisak/VIctory. Originally posted by ashrafsdrop on 2026-11-24T18:01:48Z.
Thanks @Zipettte for testing across AMD RDNA3 hardware! Great to see it clean across both NVIDIA and AMD setups.