Re:Re: Puzzled at hoRequest, hoNone, and hoReply. :-(

From: <maer727@dont-contact.us>
Date: Mon, 22 Apr 2002 16:37:47 +0800 (CST)

Thanks, Henrik pal!

I serach "HTCP" in squid.conf and FAQ and do not find
enough information about it. I simply want to know what
is HTCP. Can you give me a simple explanation? If there
are some documents about the topic, I would like to see them
myself. :-)

Best regards,
George Ma

----- Original Message -----
From: Henrik Nordstrom
To: maer727@sohu.com ;squid-dev@squid-cache.org
Subject: Re: Puzzled at hoRequest, hoNone, and hoReply. :-(
Sent: Mon Apr 22 16:08:45 CST 2002

> These are constants
>
>
> /* possible owners of http header */
> typedef enum {
> hoNone,
> #if USE_HTCP
> hoHtcpReply,
> #endif
> hoRequest,
> hoReply
> } http_hdr_owner_type;
>
>
> Seems to only be used to separate the header statistics in request,
> replies (and HTCP if used).
>
> Whenever we have constants like this, we always have a "none"
> constant with the value 0 (first value of a enum). This to tell that
> the field hasn't been assigned yet. Even if we never use the "none"
> constant in the code, having it helps greatly when debugging as it
> then is very easy to see from the debugger that the field hasn't been
> initialized.
>
>
> Regards
> Henrik
>
>
> On Monday 22 April 2002 08:31, maer727@sohu.com wrote:
> > Hi, pals!
> >
> > I search the codes where the above variables are used,
> > IMHO, I think hoRequest means the owner of the header of
> > the request, hoReply means the owner of the header of
> > the reply. Am I correct?
Received on Mon Apr 22 2002 - 02:38:09 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:15:17 MST