[][src]Crate simple_message_channels

Simple message channels

A reader and writer for messages in the "simple message channels"(SMC) binary protocol. The protocol encodes message in a simple pattern of (channel, type, message), where channel can be any number, type can be any number between 0 and 15, and message can be any byte buffer.

This is the basic wire protocol used by hypercore.

This module is a port of the JavaScript module of the same name.

Structs

Message

A SMC message.

Reader

A reader for SMC messages.

Writer

A writer for SMC messages.

Constants

MAX_MESSAGE_SIZE

The max message size (in bytes)