Implemented splice(2)
based bidirectional data transmission in tokio-rs.
Just like tokio::io::copy_bidirectional
.
See examples.
-
0.3.0:
- MSRV is now 1.70.0.
- Replace
libc
withrustix
. - Add
tracing
logger support. - Add unidirectional copy.
- Returns
TrafficResult
instead ofio::Result<T>
to have traffic transferred returned when error occurs. - (Experimental) Add
tokio::fs::File
support to splice from (likesendfile
) / to (not fully tested). - (Experimental) Basic rate limitation support.
-
0.2.1:
- Fix the maximum value of the
size_t
type. Closes: Hanaasagi/tokio-splice#2.
- Fix the maximum value of the
See BENCHMARK.
1.70.0 (To run the examples, please use the latest stable Rust version)
MIT OR Apache-2.0