Designing socket messaging format

Steve Holden sholden at holdenweb.com
Mon Nov 12 21:33:47 EST 2001


"Manoj Plakal" <terabaap at yumpee.org> wrote in ...
> Manoj Plakal wrote:
>
[ ... ]
>
>           Forgot to add: the requirement could
>           be re-stated as that of a portable, light-weight
>           library for "instant-messaging" between applications
>           running on the same machine.
>
A somewhat loose specification...

>           This might cover a lot of cases where you don't
>           need RPC semantics (no return value expected)

But some sort of response will usually be required, even if it's a simple
ACK.

>           and you're sending simple data values (so no
>           need of full-blown XML or other elaborate encoding).

How simple is simple? ASCII strings of less than 256 characters you might
get away with...\

>           And you may not even need a reliable transport
>           protocol (so no need of HTTP or even TCP).
>           XML-RPC is cool but it seems like a really
>           big and overweight hammer.
>
Oh, so you don't mind if Word prints file "xyy.doc" when you ask it to print
"xyz.doc"?

>           E.g., sending a message to Word asking it
>           to print a file, or asking Mozilla to open
>           a web page, or an MP3 playlist manager
>           accepting a request to play/pause/stop, etc.
>
Can we say "UDP?

not-reinventing-wheels-is-good-ly y'rs  - steve
--
http://www.holdenweb.com/








More information about the Python-list mailing list