Call for contributions: network and online libraries (Net, NetCtl, HTTP, SSL, Np)

Đang mở
#703 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cmake, cpp, python
Lĩnh vực
backend, networking, testing

Hướng nghiên cứu

Choose one library or API slice; the issue identifies entry points under core/libs/prx/libSceNet/, libSceNetCtl/, libSceHttp/ and libSceHttp2/, and names the 12 inert libSceNetCtl functions as a good first issue. Read docs/dev/START_HERE.md and docs/dev/BUILD.md, then follow core/libs/prx/libSceNet/tests/Ipv6Only.cpp for loopback testing. Done means the selected exports behave correctly offline without crashes or hangs, with tests passing via ctest --test-dir build -R <name> --output-on-failure.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: network enhancement help wanted medium

Call for contributions: network and online libraries

Why

Most titles probe the network at start-up, offline or not. The right behaviour offline is a precise set of error codes, not a crash, and that can be written and tested without any account or server. Counted from the code: libSceNet has 127 unimplemented exports and 12 that return success without effect (sceNetDhcpGetInfo, sceNetShowRoute, ...); libSceNetCtl 63 and 12; libSceHttp2 46 unimplemented (the whole request API: sceHttp2Init, sceHttp2CreateTemplate, sceHttp2SendRequest, ...); libSceSsl 17; libSceNpTrophy 87 and libSceNpTrophy2 43.

What to pick
  • Net and NetCtl: the socket calls that still stub (sceNetAccept, sceNetBind_nid_postfix), the 12 inert info functions, and the connection-state and event API of libSceNetCtl (core/libs/prx/libSceNet/, libSceNetCtl/).
  • HTTP: libSceHttp2 on top of the host's HTTP stack, starting with Init, templates, requests, headers and status; the 32 inert functions in libSceHttp (core/libs/prx/libSceHttp/, libSceHttp2/).
  • SSL: connection setup and certificate loading in libSceSsl on the existing TLS build.
  • Trophies: libSceNpTrophy and libSceNpTrophy2, stored locally and shown as a host notification; this is the biggest visible feature in the group.
  • Np offline behaviour: libSceNpManager, libSceNpMatching2 and libSceNpWebApi: the error codes a title gets with no signed-in account.
Expected result

Offline-correct behaviour first (clean error codes, no crash, no hang), then local features that do not need a server (trophies), then real network traffic where the console would use the internet.

How to test without our games

Loopback tests: core/libs/prx/libSceNet/tests/ (Ipv6Only.cpp) shows the pattern, and core/libs/tests/AvPlayerHttpServer.py with AvPlayerHttpTransport.cpp shows a local HTTP server driving a guest test. Use 127.0.0.1 and a local server; never real credentials or accounts. Run ctest --test-dir build -R <name> --output-on-failure.

Difficulty

Medium; hard for HTTP/2 and SSL; good first issue for the 12 inert libSceNetCtl functions.

Who to ask

Ask in this issue; the maintainers read every comment.

Rules that apply to every call
  • Comment on the issue before you start, so two people do not do the same work. One topic per pull request, against AnyKyty.
  • Conventional Commits (fix(libkernel): ..., feat(libScePad): ..., test(...), docs: ...). No comments in code. Nothing specific to one title: no title IDs, no data taken from a game, no per-title branches.
  • Every export either does exactly what it should or throws: an unimplemented export calls NotImplemented_nid_no_patch(__func__). A silent stub is allowed only when it unblocks a title and only affects the UI; list it under "Silent stubs" in the library's file in docs/dev/debt/ through a fragment (docs/dev/debt/changes/<branch>.md, see docs/dev/TechnicalDebt.md).
  • Say where a behaviour comes from: public SDK headers and documentation, a published reverse-engineering write-up, or your own analysis of your own console's system modules. Do not post or attach firmware files, system modules or game files.
  • Each test finishes in 30 s on the CI runners. python3 tools/check_conventions.py --base origin/AnyKyty must pass before you push.
  • Build and test: docs/dev/START_HERE.md and docs/dev/BUILD.md. CI runs the library tests on GitHub's runners (no GPU, no game) on Linux and Windows.
Ngôn ngữ chính
C++
Star
214
Fork
7
Merge trung bình
7 giờ 53 phút
Pull request đã merge (30 ngày)
280

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của simnJS/AnyPS5

Tất cả issue của simnJS/AnyPS5

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.