aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronur1 <onur1@onurgunduz.com>2023-01-01 18:55:26 +0100
committeronur1 <onur1@onurgunduz.com>2023-01-01 18:55:26 +0100
commitcebc15d6e11e35ef3eeee55b5444f5bbcc411931 (patch)
tree0787442fde1b30cb19a04e49b23ad3d661c830c9
parent2f48c1066942c49980f60fdd011d6ec94fa7d560 (diff)
downloadmuxer-cebc15d6e11e35ef3eeee55b5444f5bbcc411931.tar.gz
muxer-cebc15d6e11e35ef3eeee55b5444f5bbcc411931.zip
Update README
-rw-r--r--README.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/README.md b/README.md
index ca301ad..0e73a05 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,19 @@
# binproto
-generic support for binary-based request response protocols.
+binproto implements generic support for binary-based request response protocols.
## Message format
-binproto header is a varint encoded unsigned 64-bit integer which consist of an ID (first 60-bits) and a Channel number (last 4-bits). The rest of the message is data.
+Over the wire messages are length-prefixed and packed in the following format:
+
+```
+<varint - length of rest of message>
+ <varint - header>
+ <payload>
+```
+
+Each message starts with an header which is a varint encoded unsigned 64-bit integer which consists of an ID (first 60-bits) and a Channel number (last 4-bits), the rest of the message is payload.
+
## Buffered