Ident Namespace Reference

Ident Lookup API.

Classes

class  IdentConfig
 
struct  _IdentClient
 
class  IdentStateData
 

Typedefs

typedef struct Ident::_IdentClient IdentClient
 

Functions

 CBDATA_CLASS_INIT (IdentStateData)
 
static void ClientAdd (IdentStateData *state, IDCB *callback, void *callback_data)
 
void Start (const Comm::ConnectionPointer &conn, IDCB *callback, void *cbdata)
 
void Init (void)
 

Variables

IdentConfig TheConfig
 
static IOCB ReadReply
 
static IOCB WriteFeedback
 
static CLCB Close
 
static CTCB Timeout
 
static CNCB ConnectDone
 
static hash_tableident_hash = NULL
 

Typedef Documentation

Function Documentation

Ident::CBDATA_CLASS_INIT ( IdentStateData  )
void Ident::ClientAdd ( IdentStateData *  state,
IDCB callback,
void *  callback_data 
)
static
void Ident::Init ( void  )

Initialize IDENT lookup manager. Currently a hash list of open ident requests.

Definition at line 277 of file Ident.cc.

References DBG_CRITICAL, debugs, hash4, hash_create(), hashPrime(), ident_hash, and Squid_MaxFD.

Referenced by mainInitialize(), and Start().

void Ident::Start ( const Comm::ConnectionPointer conn,
IDCB callback,
void *  cbdata 
)

Open a connection and request IDENT information from a peer machine. Callack will be called whan the lookup is completed. Self-registers with a global ident lookup manager, will call Ident::Init() itself if the manager has not been initialized already.

Definition at line 237 of file Ident.cc.

References Packable::appendf(), ClientAdd(), commCbCall(), Ident::IdentStateData::conn, ConnectDone, Comm::Connection::copyDetails(), Ident::IdentStateData::hash, hash_join(), hash_lookup(), ident_hash, IDENT_KEY_SZ, IDENT_PORT, Init(), MemBuf::init(), hash_link::key, key, Comm::Connection::local, NULL, Ip::Address::port(), Ident::IdentStateData::queryMsg, Comm::Connection::remote, AsyncJob::Start(), Ident::IdentConfig::timeout, Ip::Address::toUrl(), and xstrdup.

Referenced by IdentLookup::checkForAsync(), Adaptation::Initiator::initiateAdaptation(), and ConnStateData::whenClientIpKnown().

Variable Documentation

void Ident::Close
static

Definition at line 65 of file Ident.cc.

Referenced by Log::TcpLogger::Open(), and Ident::IdentStateData::swanSong().

void Ident::ConnectDone
static

Definition at line 67 of file Ident.cc.

Referenced by Start().

hash_table* Ident::ident_hash = NULL
static

Definition at line 68 of file Ident.cc.

Referenced by Init(), Start(), and Ident::IdentStateData::swanSong().

void Ident::ReadReply
static

Definition at line 63 of file Ident.cc.

Ident::IdentConfig Ident::TheConfig

Definition at line 73 of file Ident.cc.

Referenced by ConnStateData::whenClientIpKnown().

void Ident::Timeout
static

Definition at line 66 of file Ident.cc.

void Ident::WriteFeedback
static

Definition at line 64 of file Ident.cc.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors