sending works, but unreal doesn't get it

This commit is contained in:
Brandon Thomas
2022-06-29 03:41:02 -04:00
parent 2ddeda731e
commit 2c722825e8
2 changed files with 9 additions and 0 deletions
+9
View File
@@ -27,6 +27,9 @@ pub async fn old_format() -> AnyhowResult<()> {
loop {
let mut buf = [0; 1024];
match reader.next() {
Ok((offset, block)) => {
//println!("got new block");
@@ -41,7 +44,13 @@ pub async fn old_format() -> AnyhowResult<()> {
// use linktype to parse b.data()
//println!("Block: {:?}", block)
//let len = sock.recv(&mut buf).await?;
//println!("{:?} bytes received from {:?}", len, remote_addr);
let len = sock.send(&block.data).await?;
println!("Sent: {}", len);
},
PcapBlockOwned::NG(_) => unreachable!(),
}