Commit graph

502 commits

Author SHA1 Message Date
Daniel López Guimaraes
d5df60ef58
chore: Update module version to v2 2024-04-07 23:40:51 +01:00
Daniel López Guimaraes
cde307e583
Merge pull request #42 from PretendoNetwork/rewrite 2024-04-08 00:19:36 +02:00
Jonathan Barrow
dff47f8748
prudp: remove unused ReliablePacketSubstreamManager 2024-04-02 18:02:43 -04:00
Jonathan Barrow
58526f8a1a
prudp: fix StationURL.PlatformType comment 2024-04-01 22:00:02 -04:00
Jonathan Barrow
a7b7cd29f4
prudp: move resetHeartbeat call back to processPacket 2024-03-31 21:45:28 -04:00
Jonathan Barrow
29b24b93bb
types: add OOB check in List.SetIndex 2024-03-29 21:20:51 -04:00
Jonathan Barrow
02078bf185
types: fix primitive number type shift methods 2024-03-29 21:18:39 -04:00
Daniel López Guimaraes
2ccb21dfd6
StationURL: Use strings.Cut for extracting parameters
This avoids crashes when a field with no value is given. This popped up
on Mario Kart 7.
2024-03-26 23:15:55 +00:00
Daniel López Guimaraes
24a197d747
mutex_slice: Fix typos 2024-03-23 19:24:36 +00:00
Jonathan Barrow
f2b9bf2085
update: added MutexSlice 2024-03-23 12:03:48 -04:00
Daniel López Guimaraes
115a296231
rmc_message: Remove unneeded error checks 2024-03-17 22:31:02 +00:00
Daniel López Guimaraes
a0d9eacb86
types/station_url: Remove unused parameter for Address getter 2024-03-17 22:29:58 +00:00
Jonathan Barrow
050ebb1a88
prudp: allow for custom packet types 2024-03-17 12:12:27 -04:00
Jonathan Barrow
bfadcf1fc2
chore: StationURL does actually have a Remove method 2024-03-16 12:00:41 -04:00
Jonathan Barrow
ce2526f3dd
chore: spelling in StationURL comments 2024-03-16 11:59:50 -04:00
Jonathan Barrow
dde9a9921d
prudp: more accurate StationURL implementation 2024-03-16 11:49:41 -04:00
Jonathan Barrow
ff1d3b1482
prudp: rename packet flags to distinguish them from other constants 2024-03-15 18:25:46 -04:00
Jonathan Barrow
719cb01968
prudp: added more StationURL constants 2024-03-15 18:24:10 -04:00
Jonathan Barrow
a1a590392b
chore: move constants and enums to constants package 2024-03-15 16:09:23 -04:00
Jonathan Barrow
b37dede3c4
prudp: added nil check to pendingPacket.ticker 2024-03-15 13:19:59 -04:00
Jonathan Barrow
ab069f3410
chore: formatting 2024-03-15 13:17:00 -04:00
Jonathan Barrow
68cb16c0f0
Merge pull request #43 from PabloMK7/rewrite 2024-03-06 13:21:45 -05:00
PabloMK7
89ef0596a1 Apply suggestions 2024-03-06 13:59:14 +01:00
PabloMK7
652dbecf48 Use more fields from StreamSettings 2024-03-05 19:30:53 +01:00
Jonathan Barrow
fcf3430788
prudp: swap to native Go LZO lib 2024-02-27 18:34:16 -05:00
Jonathan Barrow
6488c96db7
prudp: add start of SignatureMethod enum 2024-02-26 13:53:40 -05:00
Jonathan Barrow
6ddc9bdf46
prudp: update enum godoc comments 2024-02-26 13:25:15 -05:00
Daniel López Guimaraes
3f3d8da0ba
prudpv1: Add signature calculator functions settings 2024-02-24 11:22:50 +00:00
Daniel López Guimaraes
cdcc2bbb9d
prudpv1: Add PRUDPV1Settings
Adds setting for controlling legacy connection signature calculation,
needed for some games like Luigi's Mansion 2.
2024-02-24 00:18:49 +00:00
Daniel López Guimaraes
9711453c58
prudp_connection: Fix godoc comment typo 2024-02-22 16:11:26 +00:00
Daniel López Guimaraes
0c10582680
prudp: Add connection check on ACKs
We don't expect to receive any ACKs until the client is connected, and
packet acknowledgement requires initialized sliding windows.
2024-02-22 16:09:15 +00:00
Jonathan Barrow
7b1bdc17a6
prudp: only start heartbeat once connected 2024-02-20 15:34:53 -05:00
Jonathan Barrow
36582bbc22
prudp: removed unnecessary sliding window initialization 2024-02-20 15:33:01 -05:00
Jonathan Barrow
738045e14e
prudp: rename IsSecureEndpoint to IsSecureEndPoint for accuracy 2024-02-20 15:31:45 -05:00
Jonathan Barrow
15672fd981
chore: update comment about the SecureEndPoint in PRUDPEndPoint 2024-02-20 15:29:48 -05:00
Jonathan Barrow
582bcab984
prudp: fix ineffectual assignment to err in PRUDPServer 2024-02-20 15:21:24 -05:00
Jonathan Barrow
8fdee7cc60
prudp: update godoc comment in PRUDPConnection 2024-02-20 15:20:17 -05:00
Jonathan Barrow
88a2d4bbac
rmc: add a way to enable verbose RMC messages 2024-02-18 22:35:08 -05:00
Jonathan Barrow
5f04a25d1d
prudp: added ConnectionState checks 2024-02-18 22:23:55 -05:00
Jonathan Barrow
42d8a5380c
chore: set protocols endpoint in RegisterServiceProtocol 2024-02-18 12:02:00 -05:00
Jonathan Barrow
ff03d99568
update: add Packet property to Error and OnError event hooks 2024-02-12 15:07:49 -05:00
Jonathan Barrow
463b5e21f7
chore: rename ClientInterface to ConnectionInterface 2024-02-11 16:58:22 -05:00
Daniel López Guimaraes
9215e65ec3
chore: bugfixes and cleanup 2024-02-11 14:44:16 +00:00
Daniel López Guimaraes
857fb68f62
prudp: Support legacy NEX 1 clients 2024-02-11 00:56:06 +00:00
Daniel López Guimaraes
3b90bdc96b
refactor: Update ServerInterface to EndpointInterface
This requires a lot of refactor but it brings back the option of getting
events when a connection disconnects.
2024-02-11 00:03:05 +00:00
Daniel López Guimaraes
4683f67a04
prudp: DefaultstreamSettings -> DefaultStreamSettings 2024-01-25 17:35:00 +00:00
Jonathan Barrow
191455352a
update: added RegisterServiceProtocol to HPP and PRUDP servers 2024-01-24 16:40:38 -05:00
Jonathan Barrow
be784327c7
types: add nil and type ID checks to Variant 2024-01-24 15:57:48 -05:00
Jonathan Barrow
dc4e7ae733
update: added new Error type which conforms to the error interface 2024-01-24 14:27:17 -05:00
Jonathan Barrow
b5ef1a0a2b
chore: rename errors to result codes 2024-01-24 13:19:23 -05:00