Function libp2p::core::upgrade::write_varint

source ·
pub async fn write_varint(
    socket: &mut impl AsyncWrite + Unpin,
    len: usize
) -> impl Future<Output = Result<(), Error>>
Expand description

Writes a variable-length integer to the socket.

Note: Does NOT flush the socket.