]> git.lizzy.rs Git - mt_rudp.git/blobdiff - src/send.rs
cleanup; readme
[mt_rudp.git] / src / send.rs
index 20308e6758fc3dbeaceac22ccfd805cb0cbf2c1f..c41ad806494ff17099e7e8df8cedf95b8fe6f9e3 100644 (file)
@@ -1,4 +1,6 @@
-use crate::*;
+use crate::{prelude::*, Ack, RudpShare};
+use byteorder::{BigEndian, WriteBytesExt};
+use std::io::{self, Write};
 use tokio::sync::watch;
 
 type AckResult = io::Result<Option<watch::Receiver<bool>>>;
@@ -50,6 +52,5 @@ impl<S: UdpSender> RudpShare<S> {
 
     pub async fn send_raw(&self, data: &[u8]) -> io::Result<()> {
         self.udp_tx.send(data).await
-        // TODO: reset ping timeout
     }
 }