monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Re: Automate stdio chunk size


From: Bruce Stephens
Subject: [Monotone-devel] Re: Automate stdio chunk size
Date: Mon, 10 Jul 2006 18:00:46 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Thomas Keller <address@hidden> writes:

> Well, the EOF token wouldn't really have to be '\0', just something a
> parser could distinguish from the normal output flow. F.e. in emails
> the header is separated from the body by double newlines \n\n. If
> basic_io would become standard for all output of the automation
> interface there could even be some well-defined end token there, like
>
> ...
>
> command_finished "1234..."
>
> where the 1234... part could be the checksum for the complete output
> echoed before that token.

It's surely simpler just to say how many bytes the thing has, then
readers know to read that many bytes?

(Otherwise you'll have people worrying about the case where the
content somehow manages to contain its own checksum.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]