mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-24 23:31:33 +00:00
protocols/plaintext: Move to stable futures and use unsigned varints (#1306)
* protocols/plaintext: Move to stable futures and use unsigned varints The plaintext 2.0 specification requires to use unsigned varints for frame length delimiting instead of fixed 4 byte integer frame length delimiting. This commit aligns the implementation with the specification. * protocols/secio: Fix doc comment BytesMut -> Vec<u8> * protocols/plaintext: Add quick check smoke test * protocols/plaintext: Rework imports and log levels * protocols/plaintext: Use BytesMut instead of Vec<u8> * protocols/plaintext: Use BoxFuture
This commit is contained in:
committed by
Toralf Wittner
parent
3dd07fcc3a
commit
be73b90345
@ -103,7 +103,7 @@ impl Hmac {
|
||||
}
|
||||
|
||||
/// Takes control of `socket`. Returns an object that implements `future::Sink` and
|
||||
/// `future::Stream`. The `Stream` and `Sink` produce and accept `BytesMut` objects.
|
||||
/// `future::Stream`. The `Stream` and `Sink` produce and accept `Vec<u8>` objects.
|
||||
///
|
||||
/// The conversion between the stream/sink items and the socket is done with the given cipher and
|
||||
/// hash algorithm (which are generally decided during the handshake).
|
||||
|
Reference in New Issue
Block a user