self.sender
.send_rudp_type(
PktType::Ctl,
+ None,
Pkt {
unrel: true,
chan: 0,
self.sender
.send_rudp_type(
PktType::Ctl,
+ None,
Pkt {
chan: 0,
unrel: false,
let seqnum = cursor.read_u16::<BigEndian>()?;
self.chans[ch].packets[to_seqnum(seqnum)].replace(cursor.remaining_slice().into());
+ println!("{seqnum}");
+
let mut ack_data = Vec::with_capacity(3);
ack_data.write_u8(CtlType::Ack as u8)?;
ack_data.write_u16::<BigEndian>(seqnum)?;
self.sender
.send_rudp_type(
PktType::Ctl,
+ None,
Pkt {
chan,
unrel: true,