~ps10gel/ubuntu/xenial/trafficserver/6.2.0

« back to all changes in this revision

Viewing changes to proxy/ICPlog.h

  • Committer: Bazaar Package Importer
  • Author(s): Arno Toell
  • Date: 2011-01-13 11:49:18 UTC
  • Revision ID: james.westby@ubuntu.com-20110113114918-vu422h8dknrgkj15
Tags: upstream-2.1.5-unstable
ImportĀ upstreamĀ versionĀ 2.1.5-unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** @file
 
2
 
 
3
  A brief file description
 
4
 
 
5
  @section license License
 
6
 
 
7
  Licensed to the Apache Software Foundation (ASF) under one
 
8
  or more contributor license agreements.  See the NOTICE file
 
9
  distributed with this work for additional information
 
10
  regarding copyright ownership.  The ASF licenses this file
 
11
  to you under the Apache License, Version 2.0 (the
 
12
  "License"); you may not use this file except in compliance
 
13
  with the License.  You may obtain a copy of the License at
 
14
 
 
15
      http://www.apache.org/licenses/LICENSE-2.0
 
16
 
 
17
  Unless required by applicable law or agreed to in writing, software
 
18
  distributed under the License is distributed on an "AS IS" BASIS,
 
19
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
20
  See the License for the specific language governing permissions and
 
21
  limitations under the License.
 
22
 */
 
23
 
 
24
 
 
25
 
 
26
/****************************************************************************
 
27
 
 
28
  ICPlog.h
 
29
 
 
30
 
 
31
****************************************************************************/
 
32
 
 
33
#ifndef _ICPlog_h_
 
34
#define _ICPlog_h_
 
35
 
 
36
#include "HTTP.h"
 
37
 
 
38
//
 
39
// Logging object which encapsulates ICP query info required
 
40
// by the new logging subsystem to produce squid access log
 
41
// data for ICP queries.
 
42
//
 
43
class ICPlog
 
44
{
 
45
public:
 
46
  inline ICPlog(ICPPeerReadCont::PeerReadData * s)
 
47
  {
 
48
    _s = s;
 
49
  }
 
50
   ~ICPlog()
 
51
  {
 
52
  }
 
53
  ink_hrtime GetElapsedTime();
 
54
  struct in_addr *GetClientIP();
 
55
  SquidLogCode GetAction();
 
56
  const char *GetCode();
 
57
  int GetSize();
 
58
  const char *GetMethod();
 
59
  const char *GetURI();
 
60
  const char *GetIdent();
 
61
  SquidHierarchyCode GetHierarchy();
 
62
  const char *GetFromHost();
 
63
  const char *GetContentType();
 
64
 
 
65
private:
 
66
  ICPPeerReadCont::PeerReadData * _s;
 
67
};
 
68
 
 
69
// End of ICPlog.h
 
70
 
 
71
#endif // _ICPlog_h_