message_protocol

Crates.iomessage_protocol
lib.rsmessage_protocol
version0.1.1
sourcesrc
created_at2020-08-17 13:12:22.467552
updated_at2020-08-24 10:20:39.948327
descriptionA protocol for seperating binary messages over TCP, similar to WebSockets but more minimal.
homepagehttps://github.com/farberbrodsky/message_protocol
repositoryhttps://github.com/farberbrodsky/message_protocol
max_upload_size
id277497
size12,502
(farberbrodsky)

documentation

README

message_protocol

A protocol for seperating binary messages over TCP, similar to WebSockets but more minimal.

Our protocol for message size is similar to WebSockets, but not exactly the same.

If the first byte is 0-253, this is the length of the message content.

If the first byte is 254, read the next 2 bytes, this 16 bit number is the length.

If the first byte is 255, read the next 8 bytes, this 64 bit number is the length.

Commit count: 8

cargo fmt