]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/htcp.h
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
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.
14 #include "http/forward.h"
15 #include "HttpHeader.h"
16 #include "ip/forward.h"
17 #include "store_key_md5.h"
19 /// \ingroup ServerProtocolHTCP
38 /// \ingroup ServerProtocolHTCP
39 void neighborsHtcpReply(const cache_key
*, HtcpReplyData
*, const Ip::Address
&);
41 /// \ingroup ServerProtocolHTCP
42 void htcpOpenPorts(void);
45 * \ingroup ServerProtocolHTCP
47 * Generate and Send an HTCP query to the specified peer.
52 * \retval 1 Successfully sent request.
53 * \retval 0 Unable to send request at this time. HTCP may be shutting down or starting up.
54 * Don't wait for a reply or count in stats as sent.
55 * \retval -1 Error sending request.
57 int htcpQuery(StoreEntry
* e
, HttpRequest
* req
, CachePeer
* p
);
59 /// \ingroup ServerProtocolHTCP
60 void htcpClear(StoreEntry
* e
, const char *uri
, HttpRequest
* req
, const HttpRequestMethod
&method
, CachePeer
* p
, htcp_clr_reason reason
);
62 /// \ingroup ServerProtocolHTCP
63 void htcpSocketShutdown(void);
65 /// \ingroup ServerProtocolHTCP
66 void htcpClosePorts(void);
70 #endif /* SQUID_HTCP_H */