debug(dtls): logs Incoming/Outgoing (voir ce que reçoit le serveur après EncryptionAck)
Build Game Server / build (push) Successful in 21s
Build Game Server / build (push) Successful in 21s
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user