From 3e47b0680cd2a77954e5c842faecc079a1087208 Mon Sep 17 00:00:00 2001 From: neckfire Date: Thu, 16 Jul 2026 23:24:34 +0200 Subject: [PATCH] =?UTF-8?q?debug(dtls):=20logs=20Incoming/Outgoing=20(voir?= =?UTF-8?q?=20ce=20que=20re=C3=A7oit=20le=20serveur=20apr=C3=A8s=20Encrypt?= =?UTF-8?q?ionAck)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Prospect.Unreal/Net/DTLSHandlerComponent.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Prospect.Unreal/Net/DTLSHandlerComponent.cs b/src/Prospect.Unreal/Net/DTLSHandlerComponent.cs index 71750ad..a87d0b9 100644 --- a/src/Prospect.Unreal/Net/DTLSHandlerComponent.cs +++ b/src/Prospect.Unreal/Net/DTLSHandlerComponent.cs @@ -55,8 +55,14 @@ public sealed class DTLSHandlerComponent : HandlerComponent return; } - _transport = new DtlsPacketTransport(sendRecord); + _transport = new DtlsPacketTransport(rec => + { + Logger.Information("[DTLS] Outgoing record {N}o head={H}", rec.Length, + Convert.ToHexString(rec.AsSpan(0, Math.Min(rec.Length, 12)))); + sendRecord(rec); + }); SetActive(true); + Logger.Information("[DTLS] BeginHandshake pour {Identity} — serveur DTLS-PSK démarré", identity); _handshakeThread = new Thread(() => { @@ -88,6 +94,9 @@ public sealed class DTLSHandlerComponent : HandlerComponent } var record = ReadAlignedBytes(packet); + Logger.Information("[DTLS] Incoming active={A} established={E} failed={F} nbytes={N} head={H}", + IsActive(), _established, _failed, record.Length, + Convert.ToHexString(record.AsSpan(0, Math.Min(record.Length, 12)))); if (record.Length == 0) { return;