#include "acl/forward.h"#include "base/CbcPointer.h"#include "enums.h"#include "http/StatusCode.h"#include "icp_opcode.h"#include "ip/Address.h"#include "security/PeerOptions.h"#include <iosfwd>

Go to the source code of this file.
Classes | |
| class | CachePeer |
| struct | CachePeer::icp_ |
Macros | |
| #define | PEER_MULTICAST_SIBLINGS 1 |
Functions | |
| void | NoteOutgoingConnectionSuccess (CachePeer *const peer) |
| void | NoteOutgoingConnectionFailure (CachePeer *const peer, const Http::StatusCode code) |
| std::ostream & | operator<< (std::ostream &, const CachePeer &) |
| identify the given cache peer in cache.log messages and such More... | |
Macro Definition Documentation
◆ PEER_MULTICAST_SIBLINGS
| #define PEER_MULTICAST_SIBLINGS 1 |
Definition at line 23 of file CachePeer.h.
Function Documentation
◆ NoteOutgoingConnectionFailure()
|
inline |
reacts to a failure on a connection to an origin server or cache_peer
- Parameters
-
peer nil if the connection is to an origin server code a received response status code, if any
Definition at line 243 of file CachePeer.h.
References code, and CachePeer::noteFailure().
Referenced by Http::Tunneler::countFailingConnection(), Security::PeerConnector::countFailingConnection(), HappyConnOpener::handleConnOpenerAnswer(), and PeerPoolMgr::handleOpenedConnection().
◆ NoteOutgoingConnectionSuccess()
|
inline |
reacts to a successful establishment of a connection to an origin server or cache_peer
- Parameters
-
peer nil if Squid established a connection to an origin server
Definition at line 233 of file CachePeer.h.
References CachePeer::noteSuccess().
Referenced by FwdState::successfullyConnectedToPeer().
◆ operator<<()
| std::ostream & operator<< | ( | std::ostream & | os, |
| const CachePeer & | p | ||
| ) |
Definition at line 126 of file CachePeer.cc.
References CachePeer::name.
