http://qs321.pair.com?node_id=740362


in reply to Re^2: Good IPC Message Protocols?
in thread Good IPC Message Protocols?

Now you point it out, you're right++.

I got hung up on the "64 characters" bit and completely forgot that the input to the encoding process can contain any byte values.

That said, I still much prefer length prefixing (via pack 'n/a*' etc.) which also allows the data packet to contain all byte values, but has the added advantages of:


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.