Commit Graph

335 Commits

Author SHA1 Message Date
Eric Warmenhoven 893b0d142e Cloud Sync (#15548)
* cloud sync - algorithm and abstract cloud storage API

* WebDAV cloud sync driver, and associated net_http improvements

* Cloud sync settings menu
2023-08-04 09:20:50 +02:00
libretroadmin 9e34f22a29 Silence Xcode code warnings + general cleanups 2023-07-14 18:05:54 +02:00
libretroadmin d9c196154c (net_http.c) Get rid of strlen 2023-06-21 19:21:16 +02:00
libretroadmin edecf0cb2d Replace more strlcat calls with strlcpy 2023-06-18 19:25:24 +02:00
libretroadmin 7ebab640d7 Cleanups/style nits 2023-02-23 13:15:14 +01:00
crystalct 0fe92cc954 PSL1GHT fix http download (#14994) 2023-02-19 18:07:01 +01:00
Jamiras 0ec1a6acfd call ssl_socket_close for ssl sockets (#14903) 2023-01-25 16:17:41 +01:00
retroNUC afe3bf72bb net_http - 3ds build fix (#14900) 2023-01-25 07:15:17 +01:00
retroNUC 4ad9c7e020 net_http - Temp fix for cheevos crash (#14742) (#14899)
* net_http - Temp fix for cheevos crash (#14742)

Don't use new timeout/poll code for cheevos http requests

* net_http - Typo fix in comment
2023-01-24 23:36:17 +01:00
libretroadmin 9fbd62d7b8 Reduce dependence on strcpy_literal (just a macro for strcpy) - prefer
going through safer strlcpy
2023-01-22 17:13:38 +01:00
libretroadmin d5a268a2ac * Fix signed/unsigned mismatches
* Fix missing IPAddr on MSVC2017 UWP - use ULONG instead since this is
just a typedef
2022-11-15 00:24:26 +01:00
LibretroAdmin 78ffb973b1 Add WIIU ifdef for socket_connect_with_timeout and revert (#14503)
else default codepath
2022-10-10 18:04:05 +02:00
gblues 714878783a Fix socket_connect_with_timeout for WIIU (#14483)
== DETAILS
Previous work to clean up the HTTP networking code surfaced a bug
in `socket_connect_with_timeout()` that caused connections to
immediately fail. Specifically, achievements stopped working because
the http task code path was rewritten to use
`socket_connect_with_timeout` instead of `socket_connect`.

The bug appears to come down to an unsupported socket option. The final
check is to try to read `SO_ERROR` from the socket, and on WIIU the
`getsockopt()` call returns -1 and sets `lastsocketerr()` (WIIU's
equivalent to errno) to 16.

The fix is to change the logic to only abort the connection if that
`getsockopt()` call succeeds *and* the error is set.
2022-10-06 17:01:19 +02:00
Cthulhu-throwaway d774256e0d (Network) Add the const qualifier to some function parameters (#14463) 2022-10-03 07:35:37 +02:00
Cthulhu-throwaway daf8cb9bc8 (Netplay) Add a private or CGNAT address warning to UPnP (#14461) 2022-10-03 01:18:34 +02:00
MrHuu a878bd3f95 (Network) Adapt POLL for 3DS platform (#14431) 2022-09-25 17:15:56 +02:00
MrHuu dbba69a2d1 (Network) Check connect errno for successful connection (#14420) 2022-09-18 01:15:09 +02:00
MrHuu b88c297f8e (Network) Don't call getsockopt on 3DS platform (#14389) 2022-09-06 01:51:15 +02:00
Cthulhu-throwaway e45958b25a (Network) Get rid of the timeout_enable parameter for socket_connect (#14351) 2022-08-25 04:40:19 +02:00
Cthulhu-throwaway d3f3c58e61 (Network) Fix getnameinfo_retro's port value for HAVE_SOCKET_LEGACY platforms (#14303) 2022-08-08 15:28:42 +02:00
Cthulhu-throwaway 078f712b34 (WiiU) Attempt fix (#14302) 2022-08-07 20:32:27 +02:00
Cthulhu-throwaway add4a1e8a0 (Network) Define inet_ntop and inet_pton for older Windows versions (#14284) 2022-08-05 02:23:35 +02:00
Cthulhu-throwaway 3aa1811ca9 (Network) Add getnameinfo_retro (#14278) 2022-08-04 13:22:49 +02:00
LibretroAdmin 53d2fdbd97 net_http_urlencode - avoid one strlen call by clever use of strlcpy
return value and some subtraction arithmetic
2022-08-03 15:53:12 +02:00
LibretroAdmin ec6f4c1f55 (libretro-common) refinements to documentation 2022-08-01 13:06:35 +02:00