Commit Graph
4 Commits
Author SHA1 Message Date
georgemoralisandMetr1k 2a2f1003b0 Major net rewrite (#5236)
* p2p crypto schema

* adding p2p keyring

* p2p framing and testing

* fixups

* test fix

* missing definations

* implementation of host functions

* tcp/transport of p2p packets

* improvements in binding

* guest_net ,improvements and  test cases

* all mighty clang

* fixing macOS tests failures

* misc

* net_rewrite : net_errors , types and translation schemas

* updated fixed chunks transfer on windows

* bye bye old net

* small updates for the new net

* settings and tests

* net lib first draft

* allow more than 1 P2P instances on from same pc

* improved shadnet replies

* possible fix for jojo

* cleanup

* move net files to libaries/net

* fixed macOS tests

* mighty clang

* fixed cmakelists

* don't cosume inviation event on client (test code)

* fix macOS tests

* Large multi-file rework for Signaling and Matching2 network handling / optimization.  Consolidates Matching2-signaling and signaling to one process (signaling_handler)

General cleanup and consolidation of matching2 context management > nphandler

Removal of a lot

SIgnaling overall structure cleanup.

Matching2: added get and set roommemberdatainternal and the proper type / shadnet call / request / reply.

Consolidated signaling/matching2 typedefs to np_types2

Utilized Codex as a reviewer and for general cleanup.

* all mighty clang

* fixed member attributes

* fixed MAPPED address for matching signaling

* Fixed sceNpMatching2SignalingGetLocalNetInfo

* fixups on net core/library based on fw

* improved errno

* spilt p2p to net_p2p

* some cleanups

* fix for localinfo

* clang

* fix up

* cleanups

* cleanups

* added KernelFstat

* fixed fstat

* one more fix for fstat...

* cleanup old deprecated code

* cleanup

* General logging cleanup across NP changes.  Thanks Stephen!

* cleanup based on stephen's suggestions

* fixup

* fixing tests

* blah

* fixup

* improve memory pools

* cleaunp

* force https disable option

* clang

* @stephen's fixes

* added network field in settings and ported old network ones

---------

Co-authored-by: Metr1k <blackkn1ght1991@gmail.com>
2026-10-06 19:14:56 +03:00
georgemoralisandGabriele C db126323b9 Http module fixups and implementations (#4933)
* Some games open port with handle 255 , that is not an accepted port so don't complain about it

* Net: Send the User-Agent configured on the HTTP template

* simplified comment

* default http user-agent

* added dummy nputility module

* match User Agent 100% with decompile

* return result to np_auth and some more debug code

* implemented sceNpLookup*  (similar of how np_score ,np_tus) functions

* improved accept encoding for gzip

* removedd invalid test after last change , GZIP encoding is not default true

* Implemented Cached  Redirected Connection

* Inflate only when the response is actually GZIP-encoded and the flag is enabled

* simplify GetLibhttpSystemVersionString

* fixed tests

* old file removed

---------

Co-authored-by: Gabriele C <sgdc3.mail@gmail.com>
2026-09-03 00:18:12 +03:00
georgemoralis a2c4e68d24 Http part7 (#4462)
* sceHttpAddRequestHeader

* added sceHttpRemoveRequestHeader

* implemented a few more functions

* added sceHttpSetProxy

* cleanup

* more cleanup

* fix tests?

* fix tests part2

* Added debug in SendRequest

* improved debug

* forgot

* added real http connection path

* fixes for wipeout

* add custom redirect as it doesn't match the httplib one

* more debug messages

* clang is not my friend

* argg

* make kernelstub configurable

* added url override

* fixup

* ..

* stephen's reviews

* more stephen reviews

* http tests

* fixed tests

* fixed a single tests isssue

* one more fix

* argg
2026-06-07 19:14:42 +03:00
georgemoralis 94786d70ca Http part2 (#4441)
* more uri work based on decompile and tests

* fix includes

* fix loader stubs

* cleanups

* sceHttpParseStatusLine matches decompile and tests

* sceHttpParseResponseHeader implemenation and tests

* try fixing no-internet path in sendrequest

* minimal state machine to support proper erroring of no-internet available

* more improvements

* more implementation based on stephen's comments

* some more fixes based on decompile
2026-05-17 22:54:34 +03:00