mirror of
https://github.com/storytold/xsens-packet-send.git
synced 2026-10-09 00:09:59 +00:00
sending works, but unreal doesn't get it
This commit is contained in:
@@ -27,6 +27,9 @@ pub async fn old_format() -> AnyhowResult<()> {
|
|||||||
|
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
|
||||||
|
let mut buf = [0; 1024];
|
||||||
|
|
||||||
match reader.next() {
|
match reader.next() {
|
||||||
Ok((offset, block)) => {
|
Ok((offset, block)) => {
|
||||||
//println!("got new block");
|
//println!("got new block");
|
||||||
@@ -41,7 +44,13 @@ pub async fn old_format() -> AnyhowResult<()> {
|
|||||||
// use linktype to parse b.data()
|
// use linktype to parse b.data()
|
||||||
//println!("Block: {:?}", block)
|
//println!("Block: {:?}", block)
|
||||||
|
|
||||||
|
|
||||||
|
//let len = sock.recv(&mut buf).await?;
|
||||||
|
//println!("{:?} bytes received from {:?}", len, remote_addr);
|
||||||
|
|
||||||
let len = sock.send(&block.data).await?;
|
let len = sock.send(&block.data).await?;
|
||||||
|
|
||||||
|
println!("Sent: {}", len);
|
||||||
},
|
},
|
||||||
PcapBlockOwned::NG(_) => unreachable!(),
|
PcapBlockOwned::NG(_) => unreachable!(),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user