Jonathan Barrow
bd05699837
refactor(types): make DateTime into a type alias
2024-05-22 16:26:05 -04:00
Jonathan Barrow
2b0f14b8f1
refactor(types): make QBuffer into a type alias
2024-05-22 16:20:22 -04:00
Jonathan Barrow
a76ede10d3
refactor(types): make Buffer into a type alias
2024-05-22 16:16:56 -04:00
Jonathan Barrow
1dc17555f0
refactor(types): make primitive types into type aliases
2024-05-22 15:27:58 -04:00
Daniel López Guimaraes
39b2b55f08
fix: Tidy go modules
2024-05-19 18:41:43 +01:00
Daniel López Guimaraes
d23ec239ba
chore: Update go modules
2024-05-19 18:40:12 +01:00
Michael Wolfendale
4315467d6a
fix: fixed race condition in SlidingWindow
2024-05-18 09:08:07 +01:00
Jonathan Barrow
5f38bf34bf
Merge pull request #46 from PabloMK7/disconnectbyid
2024-04-19 13:05:05 -04:00
PabloMK7
ba656ff75b
Rename callback to predicate
2024-04-19 19:03:37 +02:00
PabloMK7
10235684fb
Fix typo
2024-04-18 18:21:28 +02:00
Daniel López Guimaraes
e2d333d597
Merge pull request #44 from DaniElectra/thread-scheduler
2024-04-18 17:12:30 +02:00
PabloMK7
90d81f6eb9
Implement and use deleteConnectionByID
2024-04-18 14:51:01 +02:00
Daniel López Guimaraes
eb3f1be3ae
resend_scheduler: Restructure finished check
2024-04-13 20:43:48 +01:00
Daniel López Guimaraes
edb4f2fc7a
resend_scheduler: Fix memory leaks
...
When a packet gets acknowledged, the goroutine timer doesn't return, and
instead waits forever for the timer that has already been stopped.
Return if the packet has been acknowledged of if the connection has
timed out to avoid wasting resources.
2024-04-13 16:50:16 +01:00
Daniel López Guimaraes
509b274086
station-url: Set flags when calling FromString
2024-04-10 19:38:29 +01:00
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