206 Commits

Author SHA1 Message Date
Brad Parker
d6741651b7 net_socket_ssl: keep reading data from server until finished, fixes #7451 2018-12-18 03:01:52 -05:00
natinusala
eac0d603f4 libnx: add network interfaces info 2018-10-12 17:37:03 +02:00
Nathan Strong
c5f9fc0a34 WiiU: fix network information
== DETAILS

For local netplay, it's useful to have your IP address easily
available. This commit makes the Information > Network Information
menu display the Wii U's IP address.

Change summary:
- Fix the logging init to be reentrant to avoid socket consumption
- Add implementation of POSIX `getifaddrs()` and `freeifaddrs()`
  to `missing_libc_functions.c`
- Remove compiler directives protecting the code paths that call
  `getifaddrs()` from being used in Wii U builds

== TESTING

Have tested locally, successfully get IP address information in
the Information > Network Information.

I think this may also fix NAT traversal. Will need to be tested.
2018-10-11 15:37:15 -07:00
Twinaphex
f00f2e3ccf
Merge pull request #7169 from GregorR/wii-u-netplay-fix
Fix netplay on Wii U
2018-10-10 20:14:24 +02:00
lifajucejo
9be2321c02 Add networking support to libnx 2018-09-27 21:23:01 -04:00
Gregor Richards
7634b1bbb0 Fix netplay on Wii U
getaddrinfo on Wii U doesn't support node==NULL. As I don't know of this
bug on any other platform, I've made a Wii-U-specific workaround in
getaddrinfo_retro.
2018-09-01 21:14:56 -04:00
twinaphex
1becd89699 Remove DEBUG ifdef 2018-08-08 04:51:03 +02:00
twinaphex
0fb7d6a9e4 (SSL) Re-enable drbg 2018-08-07 04:57:33 +02:00
twinaphex
9403489f2e try to bake out debug parts of mbedtls 2018-08-07 04:51:26 +02:00
twinaphex
768ebbfdb5 Merge commit 'ce9ce1d35387ef8144e53bf071396fa075bfb6c5' as 'libretro-common' 2018-05-12 17:56:34 +02:00
twinaphex
0548349991 Remove libretro-common 2018-05-12 17:56:14 +02:00
twinaphex
dd8a2df253 Cleanup 2018-05-03 19:17:13 +02:00
Brad Parker
05404f9104 fix buffer overflow in url encoding (affecting msvc2010/2013) 2018-05-03 12:57:23 -04:00
twinaphex
7b1ad55b20 Try to use snprintf instead of sprintf 2018-04-25 11:31:50 +02:00
twinaphex
be7eb4de1c Update libretro-common 2018-04-16 08:57:17 +02:00
twinaphex
360bea85b9 (PS3) Silence more warnings 2018-04-08 01:09:31 +02:00
twinaphex
cf4ab13281 Revert "Silence some Clang static analyzer warnings"
This reverts commit 2c882a01c12cd3104964c70f95b4037fdd6dc4e5.
2018-03-30 19:28:37 +02:00
twinaphex
2c882a01c1 Silence some Clang static analyzer warnings 2018-03-29 14:11:52 +02:00
twinaphex
f597fd7a11 Add HAVE_CHEEVOS support for MSVC 2010 2018-03-22 20:42:06 +01:00
twinaphex
c318d05803 Fix buffer overlap - pointed out by @leo150, thanks 2018-03-22 15:22:17 +01:00
radius
c52fdc469f remove task_push_http_transfer_raw, encode before sending data to the task 2018-03-16 22:38:21 -05:00
radius
b01e63e2cd make sure to always encode urls, also change the PS3 default urls 2018-03-14 23:04:50 -05:00
meleu
d5503e9e7c fix a bad in_addr manipulation on VITA - fixes #6127 (#6366)
added VITA condition
2018-03-07 22:11:30 +01:00
aliaspider
5549b136c2 (msvc) CXX_BUILD + griffin fixes. 2018-02-05 00:25:03 +01:00
aliaspider
5db96f35fa (WIN32) various build fixes. 2018-01-20 20:05:32 +01:00
twinaphex
61ff51be2f Start using string_is_equal predominantly 2018-01-16 22:53:38 +01:00
meepingsnesroms
d18ee7eaed Fix new 3ds xl not being detected, others
Also fixes whitespace in makefile and platform_ctr.c and compiles with debug libctru when DEBUG=1
2017-12-29 19:30:54 -08:00
meepingsnesroms
7dbaa45172 Basic networking, bug fixes
Fix CPU count bug, make 3ds compile with networking
2017-12-28 21:49:21 -08:00
twinaphex
6441a25c35 PS3 has AF_INET6 defined yet we still shouldn't take this path 2017-12-20 15:34:57 +01:00
Twinaphex
5eb6c5dae9
Merge pull request #5936 from clienthax/ps3res
More ps3 networking fixs.
2017-12-19 23:02:14 +01:00
clienthax
73aa381b27 More ps3 networking fixs. 2017-12-19 21:39:22 +00:00
gblues
6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
twinaphex
d6fd9f0cc1 Add fallback AF_INET6 path 2017-12-10 01:19:58 +01:00
clienthax
a565ba0149 [PS3] Partial fix of networking 2017-12-07 22:20:02 +00:00
twinaphex
23e6f0be37 Update 2017-12-06 16:54:23 +01:00
twinaphex
a53927c5aa Fix PS3 build 2017-12-06 16:53:19 +01:00
Alcaro
dc4c2cd6d9 Wipe out a buncha warnings and pointless ifdefs (some warnings will remain until #5497 is fixed) 2017-10-03 00:26:29 +02:00
twinaphex
dd351a3501 (Xbox) Provide implementation function for inet_ntop_compat 2017-09-13 03:05:28 +02:00
twinaphex
be367138f6 Provide implementation for inet_aton for Xbox 2017-09-12 23:54:10 +02:00
radius
5d03a4719f clear inet_ntop_compat warning 2017-09-10 21:44:15 -05:00
twinaphex
dbb6adb453 C89_BUILD fixes 2017-09-11 04:17:28 +02:00
twinaphex
582b688121 Silence some warnings for PS3 2017-09-06 00:21:20 +02:00
radius
6804432fa7 log address family, fix inet_ntop_compat 2017-08-15 21:03:59 -05:00
Brad Parker
02381aabef add SSL/TLS support 2017-07-26 09:18:17 -04:00
Ken
edc64991f3 Fall back to IPv4 when IPv6 connections fail 2017-07-01 08:21:09 -04:00
twinaphex
b11620e1eb Add retro_timers.h/retro_math.h 2017-06-28 04:41:38 +02:00
twinaphex
eeff3b87e8 Turn this into #elif defined(_WIN32) 2017-05-30 02:55:29 +02:00
aliaspider
d120c9f38b change this one too. 2017-05-28 12:50:21 +01:00
aliaspider
b49d2a87ab getaddrinfo error codes can also be positive. 2017-05-28 12:46:39 +01:00
aliaspider
934f7c58ba (WiiU) enable networking. 2017-05-23 10:24:23 +01:00