diff options
| author | onur1 <onur1@onurgunduz.com> | 2023-01-01 18:55:26 +0100 |
|---|---|---|
| committer | onur1 <onur1@onurgunduz.com> | 2023-01-01 18:55:26 +0100 |
| commit | cebc15d6e11e35ef3eeee55b5444f5bbcc411931 (patch) | |
| tree | 0787442fde1b30cb19a04e49b23ad3d661c830c9 /README.md | |
| parent | 2f48c1066942c49980f60fdd011d6ec94fa7d560 (diff) | |
| download | muxer-cebc15d6e11e35ef3eeee55b5444f5bbcc411931.tar.gz muxer-cebc15d6e11e35ef3eeee55b5444f5bbcc411931.zip | |
Update README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 |
