Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Raw sockets in Rust [closed]

I worked with raw sockets in C. I want to do the same in Rust. As far as I know, there is no such low-level functionality in the standard library. How can I make raw socket calls regardless?


1 Answers

If you're ending up here from google, this is now available on rust as a crate called pnet

https://crates.io/crates/pnet

The docs are here:

https://docs.rs/pnet

like image 70
Jeremy Avatar answered Oct 19 '25 23:10

Jeremy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!