CachePeer.h File Reference
#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>
Include dependency graph for CachePeer.h:
This graph shows which files directly or indirectly include this file:

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()

void NoteOutgoingConnectionFailure ( CachePeer *const  peer,
const Http::StatusCode  code 
)
inline

reacts to a failure on a connection to an origin server or cache_peer

Parameters
peernil if the connection is to an origin server
codea 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()

void NoteOutgoingConnectionSuccess ( CachePeer *const  peer)
inline

reacts to a successful establishment of a connection to an origin server or cache_peer

Parameters
peernil 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.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors