gomd-devel
[Top][All Lists]
Advanced

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

Re: [gomd-devel] <DAEMON>: new format for answers to client requests


From: Johnny Cache
Subject: Re: [gomd-devel] <DAEMON>: new format for answers to client requests
Date: Mon, 2 Jun 2003 00:13:01 -0500 (CDT)

Good thinkin gian, i especially like that it will be easier to parse. ;)
Ive been workin on 3dmosmon a lot today. finally figured out autotools.
looks like ill start debugging gomd along with it pretty soon.

best regards
-jc

On Sun, 1 Jun 2003, Gian Paolo Ghilardi wrote:

> Hi all.
>
> I've changed the format for gomd answers (I need comments about this)
> Old-format code is actually commented (not removed).
>
> Moshe: I hope you like this format.
>
>
> Example (with automated range inversion):
> REQUEST: get load 1,3-2,4
>
> OLD ANSWER FORMAT
> Node load (1) : -101
> Node load (2) : 1
> Node load (3) : <ERROR>
> Node load (4) : <ERROR>
> ...
>
> NEW ANSWER FORMAT
> (1:-101) (2:1) (3:<ERROR>)  (4:<ERROR>) ...
>
> This change has a lot of pros:
> - new format is compact
> - client will wait for just a single line (while with the old format, a
> clients doesn't know how many lines it has to wait for)
> - when the single line arrives, client gets all the value
> - format is standard -> (TYPE_OR_ID:VALUE) so can be parsed more easily
>   Where:
>   * TYPE is the type of information or a node ID
>   * VALUE is the value related to the type of information or a specific node
>
>
>
> As usual, I need comments, tests,... :)
>
> <rejected>
>
>
>
>
> _______________________________________________
> gomd-devel mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/gomd-devel
>




reply via email to

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