Commit graph

34 commits

Author SHA1 Message Date
Jonathan Barrow
8a4a2aedba
Added missing error checks 2023-06-07 23:18:05 -04:00
Jonathan Barrow
0c4508e64f
All relevant methods now return errors, and all errors are now checked 2023-06-07 23:12:13 -04:00
Daniel López Guimaraes
7eeae41f05
Fix comments linting issues 2023-05-27 23:33:52 +01:00
shutterbug2000
6590659477 Store both session URLs on the Client object
This removes the need for a DB to handle this
2023-05-20 03:42:53 -05:00
shutterbug2000
3fcc1d44c7 Seperate kick methods for graceful and timeout 2023-04-09 23:24:05 -05:00
Jonathan Barrow
cd950eff9e
More consistent PRUDP method naming 2023-04-05 19:31:00 -04:00
Jonathan Barrow
48d90055bb
Removed unused Client struct properties 2022-12-31 17:37:43 -05:00
Jonathan Barrow
b25f1d040b
rename RC4Key -> key 2022-12-31 17:36:18 -05:00
Jonathan Barrow
6be86dec58
localStationUrl -> localStationURL 2022-12-31 17:35:22 -05:00
Jonathan Barrow
27ad758bd7
Fixed Client constructor 2022-09-05 09:46:06 -04:00
Jonathan Barrow
7273e142d1
Added PRUDP minor version and support functions methods to client 2022-09-05 09:11:09 -04:00
Jonathan Barrow
8be2d8bca2 Moved all source files back to root 2022-03-29 00:15:55 -04:00
Jonathan Barrow
a2d673a235 Moving to Go modules 2022-03-27 19:59:17 -04:00
shutterbug2000
884794c8ab
whoops lol 2022-02-15 19:26:55 -06:00
shutterbug2000
a32ea54bb2
Add a proper timeout system
No idea what the hell N does but this works for us
2022-02-15 19:25:01 -06:00
Jonathan Barrow
529b2dd243 connectionId should be Connection ID 2021-11-21 20:48:47 -05:00
Jonathan Barrow
0587c5d8ce Changed kick timer to AfterFunc 2021-11-20 02:55:41 -05:00
Jonathan Barrow
4fc1ab819c moved ping timeout timer ti Go Timer channel 2021-11-18 08:43:20 -05:00
Jonathan Barrow
13ee75a2bb Added a ping timeout 2021-11-02 10:59:58 -04:00
shutterbug2000
202a288ecd Changes for MK7 2021-10-13 20:38:44 +01:00
Jonathan Barrow
1f688c3d95 PID is uint32 2021-09-12 20:57:57 -04:00
Jonathan Barrow
97e779088e Added PID methods to NEX client 2021-09-06 21:45:48 -04:00
Jonathan Barrow
f78cd960d8 Changed getters to be more Go-like
Removed "Get" prefix from getters to conform to effective Go standards
2020-04-19 21:40:04 -04:00
Jonathan Barrow
e1d1dfe90a Removed broken pings and fixed client state reuse
Ping packets were never being sent from the server. This is now fixed. Also removed the buggy StartPing loop, which never worked due to struct properties not being updated in different goroutine threads. Ping packets now get sent from the server whenever one is sent from the client

Client states were also being reused when a connection was made with an existing port on the same console, which broke NNID switching. Client states now get reset when connections begin
2020-02-16 16:48:54 -05:00
Jonathan Barrow
82c62bc806 Added ping timeout check 2020-01-31 13:08:37 -05:00
Jonathan Barrow
11bd735033 PRUDPv1 and goroutines
Added goroutines to packet handlers and added just enough of PRUDPv1 to get Super Mario Maker connecting
2020-01-24 18:14:04 -05:00
Jonathan Barrow
7713999b7a removed debug field and added missing godoc comments 2020-01-17 12:57:30 -05:00
Jonathan Barrow
8e489e4165 Complete rewrite 2020-01-17 12:42:59 -05:00
Ezekiel Bethel
f9afc4d8a5 SetCipher->SetKey, added AcknowledgeWithPayload 2019-01-15 18:23:48 +00:00
RedDuckss
a8e90ad38b Some small code clean up 2018-10-02 17:18:54 -04:00
RedDuckss
24ee0aad2b Basic v1 implementation (still kinda broken) 2018-10-02 17:02:36 -04:00
RedDuckss
c19f0e7dda It work now 2018-09-18 22:05:12 -04:00
RedDuckss
71a1387f0e RC4 and session ID fixes 2018-09-18 18:50:11 -04:00
RedDuckss
2f60727e4e restructure and, rewrite. Things do things now 2018-09-18 00:25:31 -04:00