wccp.cc File Reference
#include "squid.h"
#include "comm.h"
#include "comm/Connection.h"
#include "comm/Loops.h"
#include "event.h"
#include "fatal.h"
#include "SquidConfig.h"
Include dependency graph for wccp.cc:

Go to the source code of this file.

Classes

struct  wccp_here_i_am_t
 
struct  wccp_cache_entry_t
 
struct  wccp_i_see_you_t
 
struct  wccp_assign_bucket_t
 

Macros

#define WCCP_PORT   2048
 
#define WCCP_REVISION   0
 
#define WCCP_ACTIVE_CACHES   32
 
#define WCCP_HASH_SIZE   32
 
#define WCCP_BUCKETS   256
 
#define WCCP_CACHE_LEN   4
 
#define WCCP_HERE_I_AM   7
 
#define WCCP_I_SEE_YOU   8
 
#define WCCP_ASSIGN_BUCKET   9
 

Functions

static int wccpLowestIP (void)
 
static void wccpAssignBuckets (void)
 
void wccpInit (void)
 
void wccpConnectionOpen (void)
 
void wccpConnectionClose (void)
 
static void wccpHandleUdp (int sock, void *)
 
static void wccpHereIam (void *)
 

Variables

static int theWccpConnection = -1
 
static struct wccp_here_i_am_t wccp_here_i_am
 
static struct wccp_i_see_you_t wccp_i_see_you
 
static int last_change
 
static int last_id
 
static int last_assign_buckets_change
 
static unsigned int number_caches
 
static Ip::Address local_ip
 
static PF wccpHandleUdp
 
static EVH wccpHereIam
 

Macro Definition Documentation

#define WCCP_ACTIVE_CACHES   32

Definition at line 23 of file wccp.cc.

Referenced by wccpAssignBuckets(), wccpHandleUdp(), and wccpLowestIP().

#define WCCP_ASSIGN_BUCKET   9

Definition at line 30 of file wccp.cc.

Referenced by wccpAssignBuckets().

#define WCCP_BUCKETS   256

Definition at line 25 of file wccp.cc.

Referenced by wccpAssignBuckets().

#define WCCP_CACHE_LEN   4

Definition at line 26 of file wccp.cc.

Referenced by wccpAssignBuckets().

#define WCCP_HASH_SIZE   32

Definition at line 24 of file wccp.cc.

#define WCCP_HERE_I_AM   7

Definition at line 28 of file wccp.cc.

Referenced by wccpInit().

#define WCCP_I_SEE_YOU   8

Definition at line 29 of file wccp.cc.

Referenced by wccpHandleUdp().

#define WCCP_PORT   2048

Definition at line 21 of file wccp.cc.

Referenced by wccpConnectionOpen().

#define WCCP_REVISION   0

Definition at line 22 of file wccp.cc.

Referenced by wccpInit().

Function Documentation

void wccpConnectionClose ( void  )

Definition at line 160 of file wccp.cc.

References comm_close, DBG_IMPORTANT, debugs, and theWccpConnection.

Referenced by serverConnectionsClose(), and SquidShutdown().

static void wccpHereIam ( void *  )
static
static int wccpLowestIP ( void  )
static

Variable Documentation

int last_assign_buckets_change
static

Definition at line 71 of file wccp.cc.

Referenced by wccpHandleUdp(), and wccpInit().

int last_change
static

Definition at line 69 of file wccp.cc.

Referenced by wccpAssignBuckets(), wccpHandleUdp(), and wccpInit().

int last_id
static

Definition at line 70 of file wccp.cc.

Referenced by wccpHandleUdp(), wccpHereIam(), and wccpInit().

Ip::Address local_ip
static

Definition at line 74 of file wccp.cc.

unsigned int number_caches
static

Definition at line 72 of file wccp.cc.

Referenced by wccpAssignBuckets(), wccpHandleUdp(), and wccpInit().

int theWccpConnection = -1
static

Definition at line 64 of file wccp.cc.

Referenced by wccpAssignBuckets(), wccpConnectionClose(), wccpConnectionOpen(), and wccpHereIam().

struct wccp_here_i_am_t wccp_here_i_am
static

Definition at line 66 of file wccp.cc.

Referenced by wccpHereIam(), and wccpInit().

struct wccp_i_see_you_t wccp_i_see_you
static

Definition at line 68 of file wccp.cc.

Referenced by wccpAssignBuckets(), wccpHandleUdp(), and wccpLowestIP().

PF wccpHandleUdp
static

Definition at line 76 of file wccp.cc.

Referenced by wccpConnectionOpen(), and wccpHandleUdp().

EVH wccpHereIam
static

Definition at line 78 of file wccp.cc.

Referenced by wccpHereIam(), and wccpInit().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors