feat(client): emit EchoSent event with scheduling metadata

This commit is contained in:
Nils Andreas Svee committed 2026-05-10 20:56:43 +07:00
1 parent ab951a440a
commit 5d791d1fcd
3 files changed
+115 -4

No files matched your search

+15 -1
View File
@@ -1,4 +1,7 @@
use std::{net::SocketAddr, time::Duration};
use std::{
net::SocketAddr,
time::{Duration, Instant},
};
use crate::{session::NegotiatedParams, timing::ClientTimestamp};
@@ -36,6 +39,17 @@ pub enum ClientEvent {
at: ClientTimestamp,
},
EchoSent {
seq: u32,
logical_seq: u64,
remote: SocketAddr,
scheduled_at: Instant,
sent_at: ClientTimestamp,
bytes: usize,
send_call: Duration,
timer_error: Duration,
},
EchoReply {
seq: u32,
logical_seq: u64,