|
Squid Web Cache v8/master
|
#include "enums.h"#include "http/forward.h"#include "HttpHeader.h"#include "ip/forward.h"#include "store_key_md5.h"Go to the source code of this file.
Classes | |
| class | HtcpReplyData |
| struct | HtcpReplyData::cto_t |
Functions | |
| void | neighborsHtcpReply (const cache_key *, HtcpReplyData *, const Ip::Address &) |
| int | htcpQuery (StoreEntry *e, HttpRequest *req, CachePeer *p) |
| void | htcpClear (StoreEntry *e, HttpRequest *req, const HttpRequestMethod &method, CachePeer *p, htcp_clr_reason reason) |
| void htcpClear | ( | StoreEntry * | e, |
| HttpRequest * | req, | ||
| const HttpRequestMethod & | method, | ||
| CachePeer * | p, | ||
| htcp_clr_reason | reason | ||
| ) |
Definition at line 1607 of file htcp.cc.
References MemBuf::buf, SBuf::c_str(), HttpHeader::clean(), MemBuf::clean(), debugs, HttpRequest::effectiveRequestUri(), hoRequest, HTCP_CLR, HTCP_CLR_INVALIDATION, CachePeer::htcp_oldsquid, htcpBuildPacket(), htcpIncomingConn, htcpSend(), Http::Message::http_ver, HttpStateData::httpBuildRequestHeader(), HttpRequestMethod::image(), CachePeer::in_addr, MemBuf::init(), Comm::IsConnOpen(), AnyP::ProtocolVersion::major, htcpSpecifier::method, HttpRequest::method, AnyP::ProtocolVersion::minor, msg_id_counter, old_squid_format, CachePeer::options, HttpHeader::packInto(), htcpStuff::reason, htcpSpecifier::req_hdrs, htcpSpecifier::request, RR_REQUEST, htcpStuff::S, htcpSpecifier::uri, and htcpSpecifier::version.
Referenced by neighborsHtcpClear().
| int htcpQuery | ( | StoreEntry * | e, |
| HttpRequest * | req, | ||
| CachePeer * | p | ||
| ) |
Generate and Send an HTCP query to the specified peer.
| e | |
| req | |
| p |
| 1 | Successfully sent request. |
| 0 | Unable to send request at this time. HTCP may be shutting down or starting up. Don't wait for a reply or count in stats as sent. |
| -1 | Error sending request. |
Definition at line 1558 of file htcp.cc.
References MemBuf::buf, SBuf::c_str(), HttpHeader::clean(), MemBuf::clean(), debugs, hoRequest, CachePeer::htcp_oldsquid, HTCP_TST, htcpBuildPacket(), htcpIncomingConn, htcpSend(), Http::Message::http_ver, HttpStateData::httpBuildRequestHeader(), HttpRequestMethod::image(), CachePeer::in_addr, MemBuf::init(), Comm::IsConnOpen(), hash_link::key, AnyP::ProtocolVersion::major, htcpSpecifier::method, HttpRequest::method, AnyP::ProtocolVersion::minor, htcpStuff::msg_id, msg_id_counter, N_QUERIED_KEYS, old_squid_format, CachePeer::options, HttpHeader::packInto(), queried_addr, queried_id, queried_keys, htcpSpecifier::req_hdrs, RR_REQUEST, htcpStuff::S, storeKeyCopy(), storeKeyText(), htcpSpecifier::uri, StoreEntry::url(), and htcpSpecifier::version.
Referenced by neighborsUdpPing().
| void neighborsHtcpReply | ( | const cache_key * | key, |
| HtcpReplyData * | htcp, | ||
| const Ip::Address & | from | ||
| ) |
Definition at line 1601 of file neighbors.cc.
References DBG_IMPORTANT, debugs, EBIT_TEST, ENTRY_DISPATCHED, Store::Controller::findCallbackXXX(), StoreEntry::flags, HtcpReplyData::hit, ignoreMulticastReply(), MemObject::ircb_data, StoreEntry::locked(), StoreEntry::mem_obj, neighborAliveHtcp(), neighborCountIgnored(), neighborType(), neighborUpdateRtt(), PEER_NONE, MemObject::ping_reply_callback, StoreEntry::ping_status, PING_WAITING, AnyP::PROTO_HTCP, MemObject::request, Store::Root(), storeKeyText(), HttpRequest::url, and whichPeer().
Referenced by htcpHandleTstResponse().