Ident Namespace Reference

Ident Lookup API.

Classes

struct  _IdentClient
 
class  IdentConfig
 
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

◆ IdentClient

Function Documentation

◆ CBDATA_CLASS_INIT()

Ident::CBDATA_CLASS_INIT ( IdentStateData  )

◆ ClientAdd()

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

◆ Init()

void Ident::Init ( void  )

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

Definition at line 279 of file Ident.cc.

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

Referenced by mainInitialize(), and Start().

◆ 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(), assert, 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, Comm::Connection::local, NULL, Ip::Address::port(), Ident::IdentStateData::queryMsg, Comm::Connection::remote, AsyncJob::Start(), Ident::IdentConfig::timeout, Ip::Address::toUrl(), type, and xstrdup.

Referenced by IdentLookup::checkForAsync(), Debug::SectionLevel(), and ConnStateData::whenClientIpKnown().

Variable Documentation

◆ Close

void Ident::Close
static

◆ ConnectDone

void Ident::ConnectDone
static

Definition at line 67 of file Ident.cc.

Referenced by Ident::IdentStateData::notify(), and Start().

◆ ident_hash

hash_table* Ident::ident_hash = NULL
static

Definition at line 68 of file Ident.cc.

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

◆ ReadReply

void Ident::ReadReply
static

Definition at line 63 of file Ident.cc.

Referenced by Ident::IdentStateData::notify().

◆ TheConfig

Ident::IdentConfig Ident::TheConfig

Definition at line 73 of file Ident.cc.

Referenced by ConnStateData::whenClientIpKnown().

◆ Timeout

void Ident::Timeout
static

Definition at line 66 of file Ident.cc.

Referenced by Ident::IdentStateData::notify(), and IpcIoFile::WaitBeforePop().

◆ WriteFeedback

void Ident::WriteFeedback
static

Definition at line 64 of file Ident.cc.

Referenced by Ident::IdentStateData::notify().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors