szymonwieloch / rust-rawsock

Rust library for obtaining and sending raw network packets from interfaces.
MIT License
64 stars 16 forks source link

loop_infinite could be dynamic #4

Closed spacemeowx2 closed 4 years ago

spacemeowx2 commented 4 years ago

https://github.com/spacemeowx2/rust-rawsock/commit/b64f79b0de9b3fce8ef2618a9b56a5b4d3f1d6de

btw I also want trait Interface and Library impls Send and Sync for multi-thread. Because I need to break loop from other thread.

szymonwieloch commented 4 years ago

@spacemeowx2 loop_infinite() was supposed to be in two versions, I simply didn't have time to implement it. It is done now. Please notice that this is an experimental version and I didn't have enough time to test it. I will add more tests over the weekend. I hope it is going to be OK.

szymonwieloch commented 4 years ago

@spacemeowx2 BTW, I have also added Sync and Send