Skip to main content

Module codec

Module codec 

Source
Expand description

A Tokio codec that transforms an AsyncRead into a Stream of Messages. A Tokio codec mapping byte streams to Bitcoin message streams.

Structsยง

Builder
A builder for specifying Codec options.
Codec
A codec which produces Bitcoin messages from byte streams and vice versa.

Enumsยง

DecodeState ๐Ÿ”’

Constantsยง

HEADER_LEN ๐Ÿ”’
The length of a Bitcoin message header.
MAX_HANDSHAKE_BODY_LEN ๐Ÿ”’
The maximum body length allowed before the handshake completes.