Repository navigation
feat(libSceNet): expose socket type and listen state - #9525
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
The implementation matches the documented FreeBSD 11.4 behavior for SO_TYPE and SO_ACCEPTCONN: it reads the tracked guest socket type/listen state, returns the flag bit, and truncates to the caller's output length. The author-reported Windows test covers IPv4/IPv6, UDP/TCP, listener/accepted state, short buffers and invalid descriptors. Current eligibility, conventions, intake, labels, and report checks pass; hosted product/relinker jobs are skipped. I did not run a local test. I also checked that this PR and #9523 merge together cleanly.
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
MarcZX10
left a comment
There was a problem hiding this comment.
The implementation review and author-reported Windows test remain as noted in my earlier review, but the current overlap report changes the merge-readiness assessment. It now lists shared , , and debt-file comparisons with #9523, #9542, #9543 and #9544, and shared paths with #9506; older conflicted-base comparisons remain unresolved as well. My earlier clean merge check with #9523 is not enough to clear the refreshed report. Please compare the exact hunks, coordinate landing order with affected authors where the rule applies, record any prerequisites in , and update the overlap report after resolving/rebasing. I’m requesting changes for the repository’s overlap/coordination requirement; I found no new behavior defect in this diff. Current policy checks pass; product jobs are skipped, and I did not rerun local tests.
MarcZX10
left a comment
There was a problem hiding this comment.
The implementation review and author-reported Windows test remain as noted in my earlier review, but the current overlap report changes the merge-readiness assessment. It now lists shared CMakeLists.txt, Export.cpp, and debt-file comparisons with #9523, #9542, #9543 and #9544, and shared paths with #9506; older conflicted-base comparisons remain unresolved as well. My earlier clean merge check with #9523 is not enough to clear the refreshed report. Please compare the exact hunks, coordinate landing order with affected authors where the rule applies, record any prerequisites in the Depends on checklist, and update the overlap report after resolving/rebasing. I’m requesting changes for the repository’s overlap/coordination requirement; I found no new behavior defect in this diff. Current policy checks pass; product jobs are skipped, and I did not rerun local tests.
|
Current-head recheck: sync is 1 ahead / 119 behind today’s |
|
@MarcZX10 refreshed this branch onto main |
|
Refreshed in #9543 still follows this PR. The current intersection with #10949 is only the CMake test insertion, so I proposed this PR first while preserving both registrations. That proposal and the #5836 order are still awaiting confirmation. |
Dismissing a stale review: the requested changes were addressed after it (new head) and the merge queue blocks on it. Please request changes again if anything is still open.
|
Checked |
What
Implement
SO_TYPEandSO_ACCEPTCONNqueries insceNetGetsockoptusing the guest socket type and listening state. Readback follows FreeBSD 11.4 sogetopt: listening returns bit2, and short output buffers are truncated. Unverified console and pointer behavior remain in library debt.Tested
Windows 11 x86-64, WinLibs MinGW-w64 GCC 15.2.0-r7, Ninja, Release. Head
ea7109554cincludes mainb4d8e8bb3b.guest_net_socket_state,guest_net_protocol,guest_net_nodelay_readbackandguest_net_buffer_validation: 4/4 pass, no skips.19fe176ddcare clean. Its later closed-stream polling, IPv6 text and unrelated libc/kernel changes are outside these option paths; the local runtime results above belong to the stated head/base.Integration order remains #9523 → #9542 → #9515 → #9578 and #9525 → #9543. #9930 and #9931 are now merged, so their former prerequisites for #9932/#9948 are satisfied; #9948 still follows #9932. #6044 was closed without merging the test relocation. #10097 follows #9523 as its author confirmed. The #5836 peer/broadcast order remains a proposal. The #9525/#10949 intersection concerns CMake test registration, with no option-behavior dependency; the author of #10949 confirmed #9525-first and declared
Depends on: #9525.Canonical overlap snapshot
7e4f6e0440: confirmed intersections with #9543, #10949. 7 comparisons remain incomplete because those branches conflict with the base: #5836, #7201, #9727, #9733, #9932, #9948, #10502. Manual inspection covers peer/broadcast transport mapping, macOS paths, argument validation, socket records and diagnostic output. Preserve every option path, field, canonical declaration, fixture and debt entry during integration; these checks do not establish a combined runtime pass with the conflicting branches.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)