client_db.h File Reference
#include "anyp/ProtocolType.h"
#include "ip/Address.h"
#include "LogTags.h"
#include "cache_snmp.h"
#include "snmp_vars.h"
Include dependency graph for client_db.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Ip
 

Functions

void clientdbUpdate (const Ip::Address &, const LogTags &, AnyP::ProtocolType, size_t)
 
int clientdbCutoffDenied (const Ip::Address &)
 
void clientdbDump (StoreEntry *)
 
int clientdbEstablished (const Ip::Address &, int)
 
void clientdbSetWriteLimiter (ClientInfo *info, const int writeSpeedLimit, const double initialBurst, const double highWatermark)
 
ClientInfoclientdbGetInfo (const Ip::Address &addr)
 
Ip::Addressclient_entry (Ip::Address *current)
 
variable_listsnmp_meshCtblFn (variable_list *, snint *)
 

Function Documentation

◆ client_entry()

Ip::Address * client_entry ( Ip::Address current)

◆ clientdbCutoffDenied()

◆ clientdbDump()

◆ clientdbEstablished()

int clientdbEstablished ( const Ip::Address addr,
int  delta 
)

This function tracks the number of currently established connections for a client IP address. When a connection is accepted, call this with delta = 1. When the connection is closed, call with delta = -1. To get the current value, simply call with delta = 0.

Definition at line 182 of file client_db.cc.

References SquidConfig::client_db, client_table, clientdbAdd(), Config, debug_trap(), hash_lookup(), MAX_IPSTRLEN, ClientInfo::n_established, SquidConfig::onoff, and Ip::Address::toStr().

Referenced by Comm::TcpAcceptor::acceptInto(), ACLMaxConnection::match(), ConnStateData::swanSong(), and ConnStateData::whenClientIpKnown().

◆ clientdbGetInfo()

◆ clientdbSetWriteLimiter()

void clientdbSetWriteLimiter ( ClientInfo info,
const int  writeSpeedLimit,
const double  initialBurst,
const double  highWatermark 
)

◆ clientdbUpdate()

◆ snmp_meshCtblFn()

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors