Herman Semenov
af41281761
[Core/Dialog/ELF/FileSystems/HLE/HW/Util] Added const reference for function params
2023-12-14 14:22:24 +03:00
ANR2ME
47efec2782
Treat WSAEINVAL similar to WSAEALREADY during connect for backward-compatibility to Winsock 1.1, but might confuses with an actual invalid argument error on newer Winsock.
2023-08-26 06:25:09 +07:00
Unknown W. Brackets
a7b7bf7826
Global: Set many read-only params as const.
...
This makes what they do and which args to use clearer, if nothing else.
2022-12-10 21:13:36 -08:00
ANR2ME
ea6e5c8f74
Mask some part of public IP in the logs for security reason.
2022-06-23 00:41:41 +07:00
ANR2ME
d86dc0bff6
Fix sceNetAdhocPtpConnect issue on Windows (ie. Tales of VS) due to getpeername on Windows can return a success when the other side haven't Accepted the connection yet.
2022-05-18 06:18:15 +07:00
ANR2ME
799c721fa6
Added a note regarding select on Linux.
2022-05-18 01:11:56 +07:00
ANR2ME
d5152752d2
Added a function to get SO_ERROR on a socket.
2022-03-24 08:34:03 +07:00
ANR2ME
6b0cb78b3b
Recreate the socket before attempting to connect again after ECONNREFUSED/ENETUNREACH error, since reusing the socket only works on Windows.
2022-03-24 08:34:02 +07:00
ANR2ME
267757a5e4
Caches IP-specific Port Offset to avoid recalculating them.
2022-03-24 08:34:02 +07:00
Unknown W. Brackets
2479d52202
Global: Reduce includes of common headers.
...
In many places, string, map, or Common.h were included but not needed.
2022-01-30 16:35:33 -08:00
ANR2ME
a1accc87d4
Added comment related to EVENT_HELLO
2022-01-20 03:00:22 +07:00
ANR2ME
9a714249a6
Changing most frequently used global vars to atomic to avoid possible multi-threading issue on friendFinder thread which communicates with AdhocServer in background.
...
PS: There are more global vars being used here (too many actually), so we should find a better approach in the future (ie. using PSPThread instead).
2021-09-28 20:44:03 +07:00
ANR2ME
6a79f59c06
Fix threading issue when exiting PPSSPP due to unjoined AdhocServer thread when AdhocServer failed to bind the socket and exited the thread early.
2021-09-28 20:44:03 +07:00
ANR2ME
2bda9c1c84
Keep tracks of the sender/source port on GameMode for further communication, in case it was remapped by router or ISP for some reason.
2021-09-19 10:55:03 +07:00
ANR2ME
2305de42f0
Keeping track the source port of received data on AdhocMatching to be used for further communication, in the case the port was re-mapped for some reason.
2021-09-17 12:36:56 +07:00
Unknown W. Brackets
9403947b67
UI: Decouple new chat display and tracking logic.
2021-09-14 18:08:16 -07:00
Unknown W. Brackets
be0b0cd88d
UI: Track chat log changes more clearly.
...
This also makes it easier to have multiple views or etc. reading from it.
We want data flowing a single direction, chat system -> UI.
2021-09-14 18:08:16 -07:00
ANR2ME
7a06103cc6
Create GameMode's socket after Master and all Replicas have been created so we will know the largest buffer size.
2021-05-31 04:37:09 +07:00
ANR2ME
206ab4345e
Attempts to reconnect to Adhoc Server only when Creating/Joining/Connecting to a group or Scanning for groups, instead of on 2 seconds interval.
2021-04-02 12:19:02 +07:00
ANR2ME
e3228ca1b5
Use a function to check for loopback address
2021-04-02 12:18:12 +07:00
M4xw
4cc322466a
Switch: Workaround several missing toolchain defs.
2021-03-04 21:24:57 -08:00
ANR2ME
758fb12fc3
Making sure there are no warnings related to deprecated inet_ntoa function
2021-03-01 01:45:27 +07:00
ANR2ME
0ce2c2c6e9
Windows recvfrom doesn't support MSG_TRUNC, so we're using dummy buffer with max size as alternative for peeking actual size of the next pending message.
2021-02-11 07:40:35 +07:00
ANR2ME
fc452c0dfd
Fix frozen (0 FPS) issue on Kao Challengers and Asterix & Obelix XX (probably also fix other games from the same developer with similar issue) https://github.com/hrydgard/ppsspp/issues/14103
2021-02-11 03:44:25 +07:00
ANR2ME
849fe4ade1
Updated PdpStat to prevent rcv_sb_cc from exceeding the buffer size arg (since we use larger buffer size to prevent micro stutters or disconnection issue due to too many dropped packets with small buffer size).
...
TODO: May need to improve it to be able to calculate the correct size if there are multiple datagram messages
2021-02-04 10:31:01 +07:00
ANR2ME
a51036ffaf
Updated PdpStat and PtpStat
2021-02-02 03:39:04 +07:00
ANR2ME
d907906c74
Fix connection issue on Dynasty Warriors (Shin Sangoku Musou) games when playing with more than 2 players.
2021-01-30 15:20:24 +07:00
ANR2ME
b10797db95
Fixed an issue where sometimes a player unable to join a host on Warriors Orochi 2 (should also fix similar issue on other games that use PDP/UDP on Windows)
2020-12-25 00:27:35 +07:00
ANR2ME
38d887ce88
Change socket's MSS based on PSP_ADHOC_PTP_MSS
2020-11-16 19:03:11 +07:00
ANR2ME
4eca124710
Blocks current thread to synchronize initial GameMode data. Fixes desync issue when GameMode multiplayer mission is being started.
2020-10-29 06:08:51 +07:00
ANR2ME
399f56f73b
Implementing Adhocctl Busy state to prevent getting kicked out from Adhoc Server on games that tries to leave the group multiple times in a row.
...
Also Updated Adhocctl behavior.
2020-10-29 06:04:22 +07:00
ANR2ME
0157fe4988
Updated GameMode API (Fixed Pocket Pool)
2020-10-29 06:00:16 +07:00
ANR2ME
bff18c07d0
Fixed unable to see game room issue on Air Conflicts - Aces Of World War 2, should also fix other games with similar issue (due to invalid group mode)
2020-10-29 06:00:16 +07:00
ANR2ME
e5a02cebb4
Added Connection Refused error code on PtpConnect
2020-10-19 19:08:10 +07:00
ANR2ME
d395611135
Fixed disconnection issue when multiplayer game started on Shaun White Snowboarding, and improved multiplayer performance on games that use GameMode.
2020-10-19 19:08:10 +07:00
ANR2ME
59e2bab7ec
Added some network-related missing error codes.
2020-10-11 09:57:56 +07:00
ANR2ME
731461ad4c
Minor changes.
2020-10-10 01:01:35 +07:00
ANR2ME
93e2a1b586
Updated AdhocPollSocket implementation to fix Bleach Heat the Soul 7, Fate Unlimited Codes, Carnage Heart EXA
2020-10-10 01:01:12 +07:00
ANR2ME
8b2073cd7f
Prevent Dissidia 012 from opening too many ports when failed to connect continuously.
2020-10-10 01:00:32 +07:00
ANR2ME
fabcb60c9a
Making the workaround that fix Gundam vs Gundam Next Plus to be optional as it can improve connectivity on other games over high latency networks, and fix GvG Next Plus properly.
2020-10-10 01:00:32 +07:00
ANR2ME
d628eb2ebd
Fix Falcom games (ie. Ys vs. Sora no Kiseki, Vantage Master Portable)
2020-10-09 23:45:12 +07:00
ANR2ME
6d02e25318
Updated GameMode implementation to fix Bomberman, also improved performance on BattleZone. (+1 squashed commits)
...
Squashed commits:
[4a3168b2d] GameMode oops
2020-10-09 23:42:03 +07:00
Henrik Rydgård
4f43cff5ca
Move fileutil, net, image loaders, ui to Common. ( #13506 )
...
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing
Let's also move net while we're at it.
Move the ZIM/PNG loaders over to Common.
Move the UI framework into Common
iOS buildfix
* Buildfix
* Buildfixes
* Apple buildfix
* This typo again..
* UWP buildfix
* Fix build of PPSSPPQt, such as it is (it's not in good condition...)
* Guess what? Another buildfix.
2020-10-04 20:48:47 +02:00
ANR2ME
4881f4f0bd
Fixed PdpStat and PtpStat info
2020-09-22 10:16:04 +07:00
ANR2ME
a840bf9690
Added alerted flags info on AdhocSocket to be used on PollSocket
2020-09-21 06:42:40 +07:00
ANR2ME
3439511e0c
Implementing Adhoc GameMode HLE
2020-09-20 11:55:16 +07:00
ANR2ME
e690dc62dc
Fix an issue of major performance drops when using accepted PTP Sockets.
2020-09-15 01:53:18 +07:00
ANR2ME
8d68e917b7
Prevent Client side from forever re-trying to connect to Exited Host on Shin Sangoku Musou Multi Raid 2
2020-09-14 03:38:20 +07:00
ANR2ME
3b38062a47
Fix Failed to Bind already used port issue on Android (and probably linux too). This should fix Dynasty Warrior Strikeforce and Shin Sangoku Musou Multi Raid 2
2020-09-12 09:08:50 +07:00
ANR2ME
82a064adcf
Resolve Adhoc Server DNS early and cache it so we don't need to resolve it again later.
2020-09-10 12:00:30 +07:00