htcp.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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
23public:
25
27 bool parseHeader(const char *buffer, const size_t size);
28
29 int hit;
31 uint32_t msg_id;
32 double version;
33
34 struct cto_t {
35 /* cache-to-origin */
36 double rtt;
37 int samp;
38 int hops;
39 } cto;
40};
41
44
46void htcpOpenPorts(void);
47
61int htcpQuery(StoreEntry * e, HttpRequest * req, CachePeer * p);
62
64void htcpClear(StoreEntry * e, HttpRequest * req, const HttpRequestMethod &method, CachePeer * p, htcp_clr_reason reason);
65
67void htcpSocketShutdown(void);
68
70void htcpClosePorts(void);
71
72#endif /* USE_HTCP */
73
74#endif /* SQUID_HTCP_H */
75
int size
Definition: ModDevPoll.cc:75
HttpHeader hdr
Definition: htcp.h:30
double version
Definition: htcp.h:32
struct HtcpReplyData::cto_t cto
int hit
Definition: htcp.h:29
HtcpReplyData()
Definition: htcp.cc:1066
uint32_t msg_id
Definition: htcp.h:31
bool parseHeader(const char *buffer, const size_t size)
parses request header from the buffer
Definition: htcp.cc:1073
htcp_clr_reason
Definition: enums.h:241
void htcpOpenPorts(void)
Definition: htcp.cc:1442
int htcpQuery(StoreEntry *e, HttpRequest *req, CachePeer *p)
Definition: htcp.cc:1516
void htcpSocketShutdown(void)
Definition: htcp.cc:1617
void neighborsHtcpReply(const cache_key *, HtcpReplyData *, const Ip::Address &)
Definition: neighbors.cc:1741
void htcpClear(StoreEntry *e, HttpRequest *req, const HttpRequestMethod &method, CachePeer *p, htcp_clr_reason reason)
Definition: htcp.cc:1565
void htcpClosePorts(void)
Definition: htcp.cc:1646
unsigned char cache_key
Store key.
Definition: forward.h:29

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors