Commit graph

70 commits

Author SHA1 Message Date
Jack Garrard
7e128679ab Split apart tcp and udp recv functions 2022-10-29 17:37:30 -07:00
Jack Garrard
1fc3a78943 Shutdown send/recv threads before socket reinit 2022-10-29 17:17:38 -07:00
Jack Garrard
627e07cd65 Fix missing semicolon 2022-10-27 04:54:30 -07:00
Jack Garrard
57333d71e9 Fix recv buf size calculation 2022-10-27 04:52:27 -07:00
Jack Garrard
4171390f42 Allow hole punch packets to get through before udp fully recved 2022-10-27 04:51:36 -07:00
Jack Garrard
5c04bb1006 Use if guard for alloc in udp recv 2022-10-27 04:46:36 -07:00
Jack Garrard
a58471c19f New lines for logger output 2022-10-27 03:21:54 -07:00
Jack Garrard
78b532a316 Prevent udp error from killing tcp connection 2022-10-27 02:10:44 -07:00
Jack Garrard
efef24fbbe Fix variable names again 2022-10-27 02:09:59 -07:00
Jack Garrard
3e5c0c89e5 Merge branch 'packet-acceptance' into udp-client 2022-10-27 01:03:39 -07:00
Jack Garrard
64b56c32da Add race protection to message queues 2022-10-27 01:02:32 -07:00
Jack Garrard
89415e6f96 Hopefully prevent close socket race condition 2022-10-27 01:00:58 -07:00
Jack Garrard
24e724a824 Hopefully prevent close socket race condition 2022-10-27 00:26:26 -07:00
Jack Garrard
28c7f92453 Refactor member variable names 2022-10-27 00:25:37 -07:00
Jack Garrard
4a5a10f910 Convert receive buffer to be on heap 2022-10-26 03:33:42 -07:00
Jack Garrard
bf646b2b3d Add a newline to debug statement 2022-10-26 03:31:32 -07:00
Jack Garrard
53f91b8695 Clean up 2022-10-26 02:44:09 -07:00
Jack Garrard
a9c3ec4006 Fix a stack exhausion bug 2022-10-26 02:44:04 -07:00
Jack Garrard
4655b0755e Remove udp connection attempt in init and leave default port at 0 2022-10-25 19:41:09 -07:00
Jack Garrard
93c750ccf7 Remove tabs 2022-10-25 19:33:58 -07:00
Jack Garrard
655368241f Made default port be a higher port 2022-10-25 18:07:26 -07:00
Jack Garrard
ed83827cc1 Add udp status to debug menu 2022-10-23 18:37:08 -07:00
Jack Garrard
2654650804 Reset recv udp flag on connection close 2022-10-23 17:52:34 -07:00
Jack Garrard
694c9e73d6 Allow for a udp handshake 2022-10-23 16:37:47 -07:00
Jack Garrard
968f513bf2 Merge branch 'packet-acceptance' into udp-client 2022-10-23 14:41:48 -07:00
Jack Garrard
7c17db2d93 Fix free issue from wrong heap if unknown packet 2022-10-23 14:41:16 -07:00
Jack Garrard
ba7612a304 Fix a changed variable 2022-10-21 12:59:35 -07:00
Jack Garrard
d666707e24 Merge branch 'packet-acceptance' into udp-client 2022-10-21 12:37:57 -07:00
Jack Garrard
1fd02147b6 Add a flag to only send udp if client has received udp packets 2022-10-21 12:27:01 -07:00
Jack Garrard
f6408e2b1e Merge branch 'dev' into packet-acceptance 2022-10-15 00:18:57 -07:00
Jack Garrard
2f5ed106fa Hopefully fix emulators 2022-09-05 12:44:54 -07:00
Jack Garrard
b163749c77 Remove extra word 2022-09-05 03:28:27 -07:00
Jack Garrard
f417d39f3b Comment out extra udpaddress 2022-09-05 03:26:01 -07:00
Jack Garrard
66c8bb9e1b Closer to working 2022-09-05 03:19:33 -07:00
CraftyBoss
d4eabffff1 executor table re-impl, shine sync changes, send/recv netcode refactored 2022-09-04 02:23:02 -07:00
Jack Garrard
19c6d800bd More changes while testing 2022-09-03 01:57:57 -07:00
Jack Garrard
1204e27adb Attempt at full udp client 2022-08-30 15:18:44 -07:00
Jack Garrard
b18671f113 Move packet type check to after packet data recv 2022-08-27 01:56:20 -07:00
Sanae
b3a30b09f7 Remove a check which blocks players from being updated
Oops! teehee SmileW
2022-08-10 16:10:16 -06:00
CraftyBoss
d3b1935899
Merge pull request #20 from Istador/dns
on invalid IPv4 addresses, assume it's a hostname and do a DNS lookup
2022-08-10 15:00:35 -07:00
CraftyBoss
550b82fc1f Merge branch 'main' of https://github.com/Sanae6/SuperMarioOdysseyOnline into Sanae6-main 2022-08-10 14:40:16 -07:00
CraftyBoss
dc0930063d Merge branch 'dev' of https://github.com/CraftyBoss/SuperMarioOdysseyOnline into dev 2022-08-10 14:12:00 -07:00
CraftyBoss
8f4fac417f change recieve logs, update headers, fix bound bowl crash 2022-08-10 14:11:52 -07:00
Sanae
d18276d255 Fix switching modes between scenes 2022-08-10 15:10:28 -06:00
Sanae
34691affb0 Overhaul gamemode management 2022-08-07 15:57:18 -06:00
Sanae
5f1a91161f
Merge pull request #23 from Link4565/dev 2022-07-24 16:42:07 -06:00
Robin C. Ladiges
ce5b799593
change KeyboardMode from Numeric to ASCII 2022-07-18 03:49:42 +02:00
Robin C. Ladiges
dd4f3202ae
change default IP
This might otherwise cause confusion with the server.json setting, which should stay at 0.0.0.0.

127.0.0.1 might at least work with emulators running on the same PC out of the box. Whereas 0.0.0.0 should be invalid (except on some systems that map
it to localhost).
2022-07-18 03:48:53 +02:00
Robin C. Ladiges
b3b49bd547
on invalid IPv4 addresses, assume it's a hostname and do a DNS lookup
Enable the full keyboard to enter non-numbers and increase max length from 15 to 50 for longer hostnames.

I know FQDNs can be longer than 50 characters, but that's less common (and painful to type on the Switch).
2022-07-10 08:13:28 +02:00
CraftyBoss
3c4a20a6d4 only save ip/port changes if actually changed, reconnect fixes 2022-07-09 18:24:00 -07:00