Skip to content

feat(net): implement sceNetResolverStartNtoaMultipleRecords - #2195

Closed
obojeoboje wants to merge 1 commit into
boykopovar:mainfrom
obojeoboje:feat/net-resolver-multiple-records
Closed

obojeoboje wants to merge 1 commit into
boykopovar:mainfrom
obojeoboje:feat/net-resolver-multiple-records

Conversation

@obojeoboje

Copy link
Copy Markdown

What

sceNetResolverStartNtoaMultipleRecords always threw. Implement the synchronous IPv4 path by giving it the six-argument signature and delegating to the existing sceNetResolverStartNtoaMultipleRecordsEx implementation. Nonzero flags still throw explicitly.

The signature follows shadPS4 net.cpp; the result layout is shared with Ex and matches net_types.h. Record the PS4 reference, unsupported flags, inherited timeout/retry limitations and lack of PS5 hardware verification in TechnicalDebt.

Extend the existing network test with numeric IPv4 and localhost lookup, record layout and output bounds, null arguments, invalid/destroyed resolver IDs, unsupported flags, DNS failure and recovery. The local progress scanner changes one existing function from unimplemented to implemented: 2578/3044 (84.69%) to 2579/3044 (84.72%).

Tested

Windows 11, WinLibs MinGW-w64 GCC 15.2.0, Release:

  • Configured the full project with BUILD_TESTING=ON and pinned third-party submodules.
  • cmake --build build --target guest_sce_net_tests guest_resolver_tests --parallel 4: passed, building libSceNet and its runtime dependencies.
  • ctest --test-dir build --output-on-failure -R '^(guest_sce_net|guest_resolver)$' --parallel 2: both passed; guest_sce_net took 0.77 s.
  • Built nid_patcher, copied the new libSceNet PRX and ran the same --preserve-exports patch command as the library packaging rule: passed.
  • python tools/check_test_registration.py build: passed.
  • python tools/check_conventions.py --base origin/main: passed.

The complete library/shader build and full CTest suite were not run. Not tested on Linux, PS5 hardware or a title.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no silent stubs added
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#2232 docs/dev/TechnicalDebt.md L40
#2234 docs/dev/TechnicalDebt.md L40
#2281 core/libs/tests/GuestSceNet.cpp L83

@oneandonlydean

Copy link
Copy Markdown
Collaborator

Closing: no title reaches sceNetResolverStartNtoaMultipleRecords on main. Please reopen with the title ID and the log line when one does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants