Ident Lookup API

Functions

void Ident::Start (Ip::Address &me, Ip::Address &my_peer, IDCB *callback, void *cbdata)
void Ident::Init (void)

Function Documentation

void Ident::Init ( void   ) 

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

Bug:
Will leak the hash list if called twice.

Definition at line 267 of file Ident.cc.

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

Referenced by mainInitialize(), and Ident::Start().

void Ident::Start ( Ip::Address &  me,
Ip::Address &  my_peer,
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 216 of file Ident.cc.

References addr, CBDATA_INIT_TYPE, cbdataAlloc, Ident::ClientAdd(), Ident::Close, comm_add_close_handler(), COMM_ERROR, COMM_NONBLOCKING, comm_open_listener(), commConnectStart(), commSetTimeout(), Ident::ConnectDone, Ident::_IdentStateData::fd, Ident::_IdentStateData::hash, hash_join(), hash_lookup(), Ident::ident_hash, IDENT_KEY_SZ, IDENT_PORT, Ident::Init(), IPPROTO_TCP, _hash_link::key, MAX_IPSTRLEN, Ident::_IdentStateData::me, Ident::_IdentStateData::my_peer, NULL, Ident::Timeout, and xstrdup().

Referenced by ServerStateData::adaptOrFinalizeReply(), IdentLookup::checkForAsync(), httpAccept(), and httpsAccept().

Search

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors