Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Good IPC Message Protocols?

by BrowserUk (Pope)
on Jan 31, 2009 at 00:49 UTC ( #740362=note: print w/replies, xml ) Need Help??


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:

  • 4(or 2 or 1)-bytes/per packet transmission overhead rather than 37%.
  • Negligible encoding/decoding overhead.
  • The ability to read for just what is required rather than rely on buffering and buffer management.

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://740362]
help
Chatterbox?
[erix]: that's a good one. I must remember that :P
[stevieb]: I really dislike how perlbrew doesn't list your version of perl if a newer minor version bump has happened. eg: I use 5.24.1, but 5.24.2 is available, hiding my 5.24.1. I may look at this, as I made it display correctly in berrybrew in cases like this
[stevieb]: choroba just gleaned your post about Module::Starter. I use it too, pretty much for every dist I write

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-08-18 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (310 votes). Check out past polls.

    Notices?