| Crates.io | tokio-smoltcp |
| lib.rs | tokio-smoltcp |
| version | 0.5.1 |
| created_at | 2021-06-07 12:18:23.691312+00 |
| updated_at | 2025-08-09 05:33:49.975278+00 |
| description | An asynchronous wrapper for smoltcp. |
| homepage | https://github.com/spacemeowx2/tokio-smoltcp |
| repository | https://github.com/spacemeowx2/tokio-smoltcp.git |
| max_upload_size | |
| id | 407283 |
| size | 76,773 |
A async wrapper for smoltcp.
v0.1.x does not follow semver, the API may change at any time.
See examples/pcap.rs.
cargo build --example pcap && sudo ./target/debug/examples/pcap -h
This example uses pcap as backend and do the following things:
114.114.114.114:53 and get the www.baidu.com's IP.TcpStream and send a simple HTTP/1.0 request, then print the HTTP response.0.0.0.0:12345, accept incoming connections and send the data back.