Closed GoogleCodeExporter closed 9 years ago
Hmm yeah, they may be worth including considering the official Google library &
protobuf-c also have equivalent functions.
I doubt pb_delim_decode_noinit() is useful enough though; if someone really
needs it, he can just do the same on the application side.
Original comment by Petteri.Aimonen
on 23 Apr 2013 at 9:46
I agree with pb_delim_decode_noinit(), currently I do not use it. The reason to
implement it was to follow the current API.
Original comment by Alejandr...@gmail.com
on 25 Apr 2013 at 7:07
Hi all,
I have another idea how to implement messages framing:
Define globally known message named Header which includes field payload len
(int).
On wire encode messages like this:
length of header message (X.690 - DER encoding of length)
header message encoded with pb
user message itself encoded with pb
Header message is small, expandable, could contain more info about message then
only size etc.
Reading of wire requires only few steps.
1-2 reading of length of header
reading of header
reading of message
Original comment by P.Sta...@gmail.com
on 5 Jun 2013 at 2:55
Indeed there are dozens of different ways to implement framing. However, not
all of them deserve to be included in the core library.
The delimited encoding is widely enough used that it does.
Original comment by Petteri.Aimonen
on 5 Jun 2013 at 3:00
This issue was updated by revision bb985e99274b.
Original comment by Petteri.Aimonen
on 6 Jul 2013 at 1:18
Fix included in nanopb-0.2.2
Original comment by Petteri.Aimonen
on 18 Aug 2013 at 7:17
Original issue reported on code.google.com by
Alejandr...@gmail.com
on 23 Apr 2013 at 9:33Attachments: