carp.cc File Reference
#include "squid.h"
#include "CachePeer.h"
#include "carp.h"
#include "HttpRequest.h"
#include "mgr/Registration.h"
#include "neighbors.h"
#include "PeerSelectState.h"
#include "SquidConfig.h"
#include "Store.h"
#include <cmath>
Include dependency graph for carp.cc:

Go to the source code of this file.

Macros

#define ROTATE_LEFT(x, n)   (((x) << (n)) | ((x) >> (32-(n))))
 

Functions

static int peerSortWeight (const void *a, const void *b)
 
static void carpRegisterWithCacheManager (void)
 
void carpInit (void)
 
CachePeercarpSelectParent (PeerSelector *ps)
 
static void carpCachemgr (StoreEntry *sentry)
 

Variables

static int n_carp_peers = 0
 
static CachePeer ** carp_peers = nullptr
 
static OBJH carpCachemgr
 

Macro Definition Documentation

◆ ROTATE_LEFT

#define ROTATE_LEFT (   x,
 
)    (((x) << (n)) | ((x) >> (32-(n))))

Definition at line 23 of file carp.cc.

Function Documentation

◆ carpCachemgr()

static void carpCachemgr ( StoreEntry sentry)
static

◆ carpInit()

◆ carpRegisterWithCacheManager()

static void carpRegisterWithCacheManager ( void  )
static

Definition at line 38 of file carp.cc.

References carpCachemgr, and Mgr::RegisterAction().

Referenced by carpInit().

◆ carpSelectParent()

◆ peerSortWeight()

static int peerSortWeight ( const void *  a,
const void *  b 
)
static

Definition at line 30 of file carp.cc.

References CachePeer::weight.

Referenced by carpInit().

Variable Documentation

◆ carp_peers

CachePeer** carp_peers = nullptr
static

Definition at line 26 of file carp.cc.

Referenced by carpInit(), and carpSelectParent().

◆ carpCachemgr

OBJH carpCachemgr
static

Definition at line 27 of file carp.cc.

Referenced by carpRegisterWithCacheManager().

◆ n_carp_peers

int n_carp_peers = 0
static

Definition at line 25 of file carp.cc.

Referenced by carpInit(), and carpSelectParent().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors