session-matrix: README handshakes/status/work log, TODO section 2

This commit is contained in:
lucio committed 2026-09-16 00:42:32 -07:00
1 parent 0e826d3b8f
commit 605a9753b0
4 files changed
+369 -57

No files matched your search

+9
View File
@@ -225,6 +225,15 @@ public final class Session {
sendDirect(p)
}
/// Queues a packet that already carries its `Id`, for a broadcast the app
/// sequenced once and is sending to several connections — which is what
/// `SkSend` does with one `Id` and many sockets (`Common.cs:912-930`), and
/// what keeps the receiver's replay ring collapsing a peer pair's two
/// copies into one. `Src` is still filled in if it is `NONE`.
public func forward(_ packet: Packet) {
sendDirect(packet)
}
/// The liveness probe Windows writes before trusting a socket's "connected"
/// state (`Hi`, `TestSend`, `Common.cs:822-847`). Not sequenced, like every
/// `TcpSend`-only packet.
+1 -3
View File
@@ -235,9 +235,7 @@ public final class Switcher {
var p = Packet(type: .nextMachine)
p.des = controller
p.mouse = MouseData(x: landing.x, y: landing.y, wheelDelta: Int32(bitPattern: target))
p.id = sequencer.next()
p.src = localID
return p
return stamped(p) // Common.cs:534 goes out through SkSend
}
/// Learns the sender of a `Heartbeat`, `Awake` or `Hello`