Add Rust RUDP socket transport
This commit is contained in:
parent
7335435255
commit
41bc58a3f6
3 changed files with 338 additions and 7 deletions
|
|
@ -27,7 +27,7 @@ CultNet owns cross-runtime transport semantics:
|
|||
| C# `GameCult.Networking` | LiteNetLib UDP `NetManager` / `NetPeer`; sends legacy union messages and schema-v0 messages with `DeliveryMethod.ReliableOrdered` | LiteNetLib connection requests and app-level peer/catalog surfaces | C# owns the production-shaped realtime semantics |
|
||||
| C# interop peer | TCP stream with 4-byte length-prefixed MessagePack frames | UDP multicast probe/announce | Test harness only |
|
||||
| TypeScript `cultnet-ts` | `CultNetPeer` over any Node `Duplex`, TCP-framed transport, or single-peer RUDP socket transport; interop uses TCP | UDP multicast probe/announce in the interop peer | First UDP socket binding for the shared RUDP reliability owner |
|
||||
| Rust `cultnet-rs` | Interop example uses TCP length-prefixed MessagePack frames | UDP multicast probe/announce | Example harness plus socket-free RUDP reliability owner; no UDP socket binding yet |
|
||||
| Rust `cultnet-rs` | Interop example uses TCP length-prefixed MessagePack frames; single-peer RUDP socket transport exists in the library | UDP multicast probe/announce | UDP socket binding for the shared RUDP reliability owner |
|
||||
| Python `cultcache-py` | TCP sockets with 4-byte length-prefixed MessagePack frames for local CultMesh/CultNet server and client | Endpoint lists and CultMesh peer/Verse catalogs | Local framed service body plus socket-free RUDP reliability owner; no UDP socket binding yet |
|
||||
| Kotlin `cultmesh-kotlin` | Minimal WebSocket-like lane over TCP socket | None found in the live package | Thin client surface |
|
||||
|
||||
|
|
@ -165,15 +165,15 @@ Current progress:
|
|||
ack/ack-mask accounting, reliable resend scheduling, duplicate suppression,
|
||||
and reliable ordered channel delivery. It is in-memory and socket-free so the
|
||||
behavior can be tested before any runtime binds it to UDP I/O.
|
||||
- TypeScript now has the first socket-backed RUDP transport connection:
|
||||
`CultNetRudpSocketTransportConnection` binds a single UDP peer to the shared
|
||||
RUDP session, emits the same `frame` events as the TCP-framed transport, and
|
||||
can carry `CultNetPeer` schema messages over reliable ordered `schema`
|
||||
frames.
|
||||
- TypeScript and Rust now have socket-backed RUDP transport connections that
|
||||
bind a single UDP peer to the shared RUDP session. TypeScript emits the same
|
||||
`frame` events as the TCP-framed transport and can carry `CultNetPeer` schema
|
||||
messages over reliable ordered `schema` frames; Rust exposes the same
|
||||
transport frame/stats shape through synchronous socket polling.
|
||||
- The remaining parity work is to add the equivalent port to Kotlin, deepen
|
||||
Python's server-side use of its port, and move each runtime's existing
|
||||
TCP/LiteNetLib/WebSocket bodies behind those ports, then bind the shared RUDP
|
||||
reliability state machine to UDP sockets in C#, Rust, and Python.
|
||||
reliability state machine to UDP sockets in C# and Python.
|
||||
|
||||
## RUDP Packet Contract V0
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue