fix(libkernel): send and receive on libSceNet sockets #18811
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18811"
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 boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-11-12T11:07:03Z.
What
Route POSIX send and recv on libSceNet-owned descriptors through the same checked transfer hooks used by sendto and recvfrom. Stream and datagram callers can transfer data without supplying a peer address. The forwarded receive path reuses the existing MSG_WAITALL handling.
Tested
Windows x64, WinLibs GCC 15.2, Release. The focused guest_sce_net_kernel_forwards test passed three consecutive runs on the final diff, including native and libSceNet loopback streams and datagrams, null buffers, and an empty nonblocking receive. With the implementation reverted, the fixture aborts at the forwarded send assertion. Source and test inputs are identical on the published patch and the locally built verification patch.
Conventions passed against upstream main. The overlap review found adjacent native transport work in #12682, #12688, #12700 and #12965. This change adds the libSceNet forwarding path. Merge previews with #18167 and #18474 were clean after moving the datagram check into its own fixture.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-12T11:50:28Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
1c30f2410c:tools/check_conventions.pypassed;git diff --checkclean.guest_net_kernel_forwards_testsbuilt cleanly.guest_sce_net_kernel_forwards):core/libs/prx/libkernel/Socket/src/Udp.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me