Commit Graph

68 Commits

Author SHA1 Message Date
Henrik Rydgård cf8afb9490 Safety check in sceNetInetSelect 2026-03-13 10:36:59 +01:00
Henrik Rydgård a08b6c1340 More error code cleanup 2025-08-06 17:44:54 +02:00
Adam.N 0aa8e39b50 Reduce the number of lines a little bit. 2025-05-06 23:08:14 +07:00
Adam.N 4e2d5ca6de Only enforce blocking-mode on games that use blocking-mode. 2025-05-06 00:49:06 +07:00
Henrik Rydgård da7c99a585 sceNetInet: Implement per-thread errno. Reduce some log levels 2025-04-08 08:31:09 +02:00
Henrik Rydgård ebcf6be42c When (successfully) using dyn_dns, remove fixed lookups.
Additionally some various cleanup.
2025-04-08 00:32:40 +02:00
Henrik Rydgård 4e25f44eef Rename some module-related functions to include HLE where appropriate 2025-03-31 11:17:50 +02:00
Henrik Rydgård 28b2c7f540 HLE log rename part 1: Remove duplicate log functions. Return type should be determined by metadata. 2025-01-29 09:45:39 +01:00
Henrik Rydgård 57b6850ea0 Pause screen improvements 2025-01-22 11:50:01 +01:00
Henrik Rydgård e4de9dbfb5 Add some socket data in the debugger 2025-01-22 10:12:56 +01:00
Henrik Rydgård 2523690584 Flip around so sceDelayResult is always outermost. Start using HLECall. 2025-01-20 12:20:18 +01:00
Henrik Rydgård 86b3eadc16 Warning fixes, maybe test fix 2025-01-19 16:33:40 +01:00
Henrik Rydgård 9165711cef Convert more HLE logging to the hleLog system 2025-01-19 15:53:20 +01:00
Henrik Rydgård 5316ec7ef7 Fix more misuse of the hleLog* functions 2025-01-19 13:09:30 +01:00
Henrik Rydgård 7a0ec74c32 Merge pull request #19855 from oltolm/cmake
make compile with Clang/GCC on Windows
2025-01-17 15:13:52 +01:00
Henrik Rydgård 6c6ea2a355 Sockopt: Ignore case we can't support (SO_ONESBCAST) 2025-01-17 12:28:09 +01:00
Henrik Rydgård bfcef44c48 setsockopt refactor part #2 2025-01-17 09:31:38 +01:00
Henrik Rydgård 852c41d124 sockopt refactor part #1 2025-01-17 09:31:09 +01:00
Henrik Rydgård 1013be090c sceNetInet: Refactor errno handling and logging, so we always see how it changes 2025-01-12 14:57:51 +01:00
Henrik Rydgård c901486791 Removes another hacky behavior in sceNetInetGetErrno 2025-01-12 12:50:32 +01:00
Henrik Rydgård 016d66f866 sceNetInet: Stop resetting inetLastErrno to 0 in sceNetInetGetErrno()
This fixes MOHH on Windows.
2025-01-12 12:38:47 +01:00
Henrik Rydgård 364fc2ed6a More sceNetInet logging cleanup 2025-01-11 10:22:23 +01:00
Henrik Rydgård 54581441ea Start cleaning up logging in sceNetInet 2025-01-11 10:22:21 +01:00
AdamN c5e1ea71e0 oops 2025-01-11 09:24:39 +07:00
oltolm 9566065455 make compile on mingw-w64 2025-01-11 01:25:27 +01:00
AdamN ec99cb47bd Fix potential buffer size issue on sceNetInetGetsockname 2025-01-10 22:38:30 +07:00
AdamN cbe8c922a4 Fix potential buffer size issue on sceNetInetGetpeername 2025-01-10 22:25:25 +07:00
Henrik Rydgård 885724db83 Add comments (checked that no other host socket numbers leak to the game) 2025-01-10 14:54:45 +01:00
Henrik Rydgård e79fdaca57 Fix bug in sceNetInetPoll, similar to the previous select bug 2025-01-10 11:24:12 +01:00
AdamN e8bf2effc6 Changed Address Replacement log channel to WARN, because apparently Debug channel being disabled on non-Windows 2025-01-10 07:10:27 +07:00
AdamN 6335144392 Only do address replacement when built-in Adhoc Server is enabled. 2025-01-09 16:39:45 +07:00
Henrik Rydgård 0cec39d11f Add socket mapping for accept(). Don't know if games use it... 2025-01-08 19:36:01 +01:00
Henrik Rydgård 440fa80c5f Use the correct count parameter for select 2025-01-08 18:47:16 +01:00
Henrik Rydgård cddd3d439d Crashfix with asan, minor 2025-01-08 18:03:45 +01:00
Henrik Rydgård 77fcb181a5 Just some code formatting 2025-01-08 17:01:27 +01:00
Henrik Rydgård 728268bb3f Better CreateSocket errro handling 2025-01-08 16:35:09 +01:00
Henrik Rydgård c9c594462f Track non-blocking state 2025-01-08 16:25:44 +01:00
Henrik Rydgård b97b0e4cf6 Add Close method to socket manager 2025-01-08 16:25:15 +01:00
Henrik Rydgård a1744a6989 Add SocketManager::CreateSocket for convenience 2025-01-08 15:27:54 +01:00
Henrik Rydgård 155a9f9dbc Turn the socket manager into a class 2025-01-08 14:59:40 +01:00
Henrik Rydgård 5026e92450 Set min socket number to 61. Somehow this fixes Linux?? 2025-01-08 14:46:45 +01:00
Henrik Rydgård 2c3f7f6806 Add a central location for managing HLE sockets 2025-01-08 13:29:09 +01:00
Henrik Rydgård 3dc2a1034d Setting a socket number minimum of 20 solved the Mac problems. I guess it clashes with the adhoc code? 2025-01-08 13:28:16 +01:00
Henrik Rydgård c33ea84db1 Implement one of ANR2ME's TODOs 2025-01-08 13:27:51 +01:00
Henrik Rydgård fcb3d636b4 Fix some closesocket bugs 2025-01-08 13:27:51 +01:00
Henrik Rydgård 8505e24812 Attempt to implement remapping in select/poll 2025-01-08 13:27:49 +01:00
Henrik Rydgård 0f2bd65845 Use the wrapper struct, except in case of poll/select 2025-01-08 13:27:20 +01:00
Henrik Rydgård 08f2bee1bd Add socket lookups 2025-01-08 13:26:08 +01:00
Henrik Rydgård 303a03c9a8 Cleanup, define socket struct 2025-01-08 13:26:08 +01:00
Henrik Rydgård c3aa0f7452 Centralize socket-related includes, introduce socket_errno
This resolves some weird inconsistentes and include order problems
related to errno. Needed for the next steps.
2025-01-08 12:42:45 +01:00