Commit graph

37 commits

Author SHA1 Message Date
Daniel López Guimaraes
dfe7dba66b
chore: Update module version to v2 2024-04-07 23:56:20 +01:00
Daniel López Guimaraes
34f42e501d
chore: Use nex-go constants 2024-03-17 22:37:34 +00:00
Jonathan Barrow
2728968441
update: added OnAfter event handlers for common methods 2024-02-13 16:34:03 -05:00
Jonathan Barrow
87d7dc43b6
nat-traversal: fixed ReportNATTraversalResultDetail method ID 2024-02-13 16:18:17 -05:00
Jonathan Barrow
a97b74843a
nat-traversal: fixed comment 2024-02-13 16:14:51 -05:00
Daniel López Guimaraes
b6c8028476
refactor: Remove common protocols global variables 2024-02-11 14:51:26 +00:00
Daniel López Guimaraes
410ca40c01
refactor: Update ServerInterface to EndpointInterface
Also update method handlers to use the new nex.Error return.
2024-02-11 00:33:30 +00:00
Daniel López Guimaraes
bbb4872e89
Fix typos and use account getters from endpoint 2024-01-25 17:39:32 +00:00
Jonathan Barrow
d15b82cc12
chore: nex.Errors -> nex.ResultCodes 2024-01-24 16:51:45 -05:00
Jonathan Barrow
ce83fe9720
chore: update to new types 2024-01-22 12:40:37 -05:00
Daniel López Guimaraes
33c6ccc225
Update RMC method creation 2023-12-16 15:46:55 +00:00
Daniel López Guimaraes
6aa24a9ccf
Rename common protocols to CommonProtocol
This reduces the redundancy and follows better the Go style.
2023-12-14 23:21:01 +00:00
Daniel López Guimaraes
5168b5c3d4
Update PRUDP cast comments
Now that the websockets server is integrated into PRUDPServer, we have
to question if we even want to remove these casts, since it doesn't make
much sense for HPP.

Also updaete SecureConnection::Register to support TCP addresses on the
client for websocket implementations.
2023-12-14 21:33:25 +00:00
Jonathan Barrow
c8ca7cab4a
most common protocols now use interfaces 2023-12-10 00:30:53 -05:00
Daniel López Guimaraes
b03ebf8adb
Update with new virtual ports handling 2023-12-09 21:04:42 +00:00
Daniel López Guimaraes
161f95da5f
Use ServerInterface and ClientInterface
There are some places where the PRUDP implementation is still needed,
but they aren't needed for HPP.
2023-12-07 14:05:33 +00:00
Jonathan Barrow
3ac05a7067
updated StationURL handling 2023-11-24 17:41:18 -05:00
Jonathan Barrow
0e39f84cf9
use new PID, DateTime and method returns 2023-11-14 22:47:15 -05:00
Jonathan Barrow
edcc444a36
work with new nex-go 2023-11-12 06:47:56 -05:00
Jonathan Barrow
011d7a1753
pass the original packet to method handlers instead of client 2023-11-01 07:50:32 -04:00
Daniel López Guimaraes
5160332968
Move logger to globals
This allows us to log inside the matchmaking globals.
2023-10-20 23:27:38 +01:00
Jonathan Barrow
d2c568777b
Improved NAT and StationURL handling 2023-08-15 06:49:48 -04:00
Jonathan Barrow
f75330649c
Formatting updates 2023-08-08 10:20:06 -04:00
Daniel López Guimaraes
71163070db
Update go modules and proper error handling
With the latest release of nex-protocols-go we can now implement error
handling in a clean way.
2023-08-06 01:44:42 +01:00
SuperMarioDaBom
5b5b237027 Update to new naming style in nex-protocols-go 2023-07-27 13:54:39 -07:00
shutterbug2000
f3f84c3cbd Fix code review issues 2023-07-12 19:31:54 +00:00
shutterbug2000
9ec24f6297 Implement methods for Pokemon Gen6
This allows Wonder Trade and Random Matchup free battle to function.
PSS matchup will require more methods.
2023-07-12 17:26:56 +00:00
Daniel López Guimaraes
e598334373
Address PR issues
And other improvements
2023-06-06 21:29:47 +01:00
Daniel López Guimaraes
2e3bc892e8
Use common struct on NAT Traversal
Also remove external handlers, as we now store the client station URLs
on nex.Client. And implement ReportNATTraversalResult.
2023-06-05 20:46:52 +01:00
Jonathan Barrow
a28a4364d7
Updated NEX library versions 2023-04-07 21:03:47 -04:00
Jonathan Barrow
c1386ff993
plogger->plogger-go, nex-go->v1.0.8, nex-protocols-go->v1.0.5 2022-08-29 18:17:05 -04:00
Jonathan Barrow
631aa80784 Use the NATTraversalMethodReportNATProperties method ID 2022-05-09 10:25:01 -04:00
Jonathan Barrow
ee6895734c Added plogger logging 2022-04-15 17:04:17 -04:00
Jonathan Barrow
0533998853 Removed hard coded PRUDP version 2022-04-09 18:48:09 -04:00
Jonathan Barrow
bce3bfedbb Update station URLs to new API 2022-04-09 18:33:28 -04:00
Jonathan Barrow
a7afcba740 Update handlers to work with newest nex-go and nex-protocols-go 2022-03-29 10:58:44 -04:00
shutterbug2000
851156079a Add Secure Connection + move to a single repo per Discord 2022-03-24 08:33:00 +00:00