You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you please give a code sample that you would like to see working with pcap? That way it will be easier to target exactly the feature you would like.
In my case, I was relying on the fact, that pcap internally just keeps an fd and using tokio, you can do async read and write operations on that. Providing an API similar to that would be great to have. I just have a fixed length array, into which I read the data, process it and then continue to the next packet.
letmut buf = [0x00;1500];let len = capture.read(&mut buf).await.unwrap();
It would be nice, to be able to use a capture asynchronously, without the Codec forcing you to allocate.
The text was updated successfully, but these errors were encountered: