htcp.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_HTCP_H
10 #define SQUID_HTCP_H
11 
12 #if USE_HTCP
13 
14 #include "http/forward.h"
15 #include "HttpHeader.h"
16 #include "ip/forward.h"
17 #include "store_key_md5.h"
18 
21 {
22 
23 public:
24  HtcpReplyData();
25  int hit;
27  uint32_t msg_id;
28  double version;
29 
30  struct cto_t {
31  /* cache-to-origin */
32  double rtt;
33  int samp;
34  int hops;
35  } cto;
36 };
37 
39 void neighborsHtcpReply(const cache_key *, HtcpReplyData *, const Ip::Address &);
40 
42 void htcpOpenPorts(void);
43 
57 int htcpQuery(StoreEntry * e, HttpRequest * req, CachePeer * p);
58 
60 void htcpClear(StoreEntry * e, const char *uri, HttpRequest * req, const HttpRequestMethod &method, CachePeer * p, htcp_clr_reason reason);
61 
63 void htcpSocketShutdown(void);
64 
66 void htcpClosePorts(void);
67 
68 #endif /* USE_HTCP */
69 
70 #endif /* SQUID_HTCP_H */
71 
htcp_clr_reason
Definition: enums.h:204
void htcpOpenPorts(void)
Definition: htcp.cc:1355
unsigned char cache_key
Store key.
Definition: forward.h:29
HttpHeader hdr
Definition: htcp.h:26
void htcpClosePorts(void)
Definition: htcp.cc:1569
int htcpQuery(StoreEntry *e, HttpRequest *req, CachePeer *p)
Definition: htcp.cc:1429
int hit
Definition: htcp.h:25
void neighborsHtcpReply(const cache_key *, HtcpReplyData *, const Ip::Address &)
Definition: neighbors.cc:1696
char * p
Definition: membanger.c:43
void htcpClear(StoreEntry *e, const char *uri, HttpRequest *req, const HttpRequestMethod &method, CachePeer *p, htcp_clr_reason reason)
Definition: htcp.cc:1479
struct HtcpReplyData::cto_t cto
HtcpReplyData()
Definition: htcp.cc:992
double version
Definition: htcp.h:28
size_t HttpReply *STUB StoreEntry const KeyScope scope const HttpRequestMethod & method
Definition: stub_store.cc:126
uint32_t msg_id
Definition: htcp.h:27
void htcpSocketShutdown(void)
Definition: htcp.cc:1540

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors