]>
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"
18 /// \ingroup ServerProtocolHTCP
37 /// \ingroup ServerProtocolHTCP
38 void neighborsHtcpReply(const cache_key
*, HtcpReplyData
*, const Ip::Address
&);
40 /// \ingroup ServerProtocolHTCP
41 void htcpOpenPorts(void);
44 * \ingroup ServerProtocolHTCP
46 * Generate and Send an HTCP query to the specified peer.
51 * \retval 1 Successfully sent request.
52 * \retval 0 Unable to send request at this time. HTCP may be shutting down or starting up.
53 * Don't wait for a reply or count in stats as sent.
54 * \retval -1 Error sending request.
56 int htcpQuery(StoreEntry
* e
, HttpRequest
* req
, CachePeer
* p
);
58 /// \ingroup ServerProtocolHTCP
59 void htcpClear(StoreEntry
* e
, const char *uri
, HttpRequest
* req
, const HttpRequestMethod
&method
, CachePeer
* p
, htcp_clr_reason reason
);
61 /// \ingroup ServerProtocolHTCP
62 void htcpSocketShutdown(void);
64 /// \ingroup ServerProtocolHTCP
65 void htcpClosePorts(void);
69 #endif /* SQUID_HTCP_H */