]> err.no Git - varnish/commit
Change the CLI protocol in a subtle but useful way:
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 4 Aug 2006 06:53:26 +0000 (06:53 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 4 Aug 2006 06:53:26 +0000 (06:53 +0000)
commitbacbff5002626f6395f8d991514f6d206ec77257
treec98c8bc66f24ee9120901fd8bb184ae1624ee0e6
parent4c749b01abe18fe74c2e4309b68803c7733857c7
Change the CLI protocol in a subtle but useful way:

The first line of the response has a fixed format ("%-3d %-8u\n")
and consequently fixed length (CLI_LINE0_LEN == 13).

This makes parsing responses more efficient.  Add a function
in common_cli to do so.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@630 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/common_cli.c
varnish-cache/bin/varnishd/common_cli.h
varnish-cache/bin/varnishd/mgt_cli.c
varnish-cache/include/cli.h