Commit graph

23 commits

Author SHA1 Message Date
Daniel López Guimaraes
10faf0a38a
Merge branch 'master' into types-updates 2025-01-09 21:13:19 +00:00
Ash Logan
fbe2b91e75 feat(endpoint): Route connection closures via new cleanupConnection method
Centralising connection closures helps ensure that everything gets done (.cleanup()) and there's One True Way to find them in the Connections map

It's worth noting that every callsite has a PRUDPConnection*, so maybe a different datastructure would serve us better here?
2025-01-04 17:33:33 +11:00
Ash Logan
5dda129a6f chore: Remove Connections tracking from SocketConnection
Every SocketConnection had a map of *PRUDPConnection, which was never actually inserted into anywhere, so the intended function of tracking what OS sockets have which PRUDP streams was not being done.

Remove it as dead code. If the rest of the connection tracking is going to be implemented, this commit can be reverted.

Since the SocketConnection no longer has long-lived state in it, also remove the map on PRUDPServer and just create it as a simple data structure when needed.

The connection close handling of the websocket server had to be rewritten - the old code would never do anything due to the empty maps, so this can't be *worse* than nothing :)
2025-01-03 17:58:46 +11:00
Jonathan Barrow
2309a6d409
Merge branch 'master' into types-updates 2024-07-03 23:26:52 -04:00
Michael Wolfendale
9997fb672a
chore: rename ResendScheduler TimeoutManager 2024-07-02 17:29:28 +01:00
Michael Wolfendale
18380590ab
feat: rework resending packets to be more accurate 2024-07-02 16:54:47 +01:00
Michael Wolfendale
de3610deaf
fix: added Purge method to PacketDispatchQueue 2024-06-12 23:03:41 +01:00
Michael Wolfendale
1258086480
fix: modify connection state checks 2024-06-11 12:49:10 +01:00
Jonathan Barrow
832bd19751
refactor(types): remove reliance on pointers 2024-06-05 17:24:00 -04:00
Jonathan Barrow
3a90361903
fix: update StationURLs handling in NewPRUDPConnection 2024-06-04 14:47:58 -04:00
Michael Wolfendale
07dda5708e
chore: remove logic in SlidingWindow for incoming packets 2024-05-27 21:59:51 +01:00
Michael Wolfendale
75c402b7ee
feat: use PacketDispatchQueue in PRUDPEndpoint 2024-05-27 21:59:51 +01:00
PabloMK7
90d81f6eb9 Implement and use deleteConnectionByID 2024-04-18 14:51:01 +02:00
Daniel López Guimaraes
d5df60ef58
chore: Update module version to v2 2024-04-07 23:40:51 +01:00
Jonathan Barrow
a1a590392b
chore: move constants and enums to constants package 2024-03-15 16:09:23 -04: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
Daniel López Guimaraes
9711453c58
prudp_connection: Fix godoc comment typo 2024-02-22 16:11:26 +00:00
Jonathan Barrow
8fdee7cc60
prudp: update godoc comment in PRUDPConnection 2024-02-20 15:20:17 -05:00
Jonathan Barrow
5f04a25d1d
prudp: added ConnectionState checks 2024-02-18 22:23:55 -05: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
Jonathan Barrow
6006842ed2
prudp: added StationURLs to PRUDPConnection 2024-01-22 10:43:38 -05:00
Jonathan Barrow
9cec5d9e9c
prudp: completely redo virtual connections 2024-01-15 15:01:26 -05:00