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) |
Variables | |
IdentConfig | TheConfig |
static IOCB | ReadReply |
static IOCB | WriteFeedback |
static CLCB | Close |
static CTCB | Timeout |
static CNCB | ConnectDone |
static hash_table * | ident_hash = nullptr |
Typedef Documentation
◆ IdentClient
typedef struct Ident::_IdentClient Ident::IdentClient |
Function Documentation
◆ CBDATA_CLASS_INIT()
Ident::CBDATA_CLASS_INIT | ( | IdentStateData | ) |
◆ ClientAdd()
|
static |
Definition at line 249 of file Ident.cc.
References C, Ident::_IdentClient::callback, Ident::_IdentClient::callback_data, cbdataReference, Ident::IdentStateData::clients, and xcalloc().
Referenced by Start().
◆ Start()
void Ident::Start | ( | const Comm::ConnectionPointer & | conn, |
IDCB * | callback, | ||
void * | cbdata | ||
) |
Open a connection and request IDENT information from a peer machine. Callback will be called when the lookup is completed.
Definition at line 264 of file Ident.cc.
References Packable::appendf(), assert, ClientAdd(), commCbCall(), conn, ConnectDone, Ident::IdentStateData::connWait, Ident::IdentStateData::hash, hash4, hash_create(), hash_join(), hash_lookup(), hashPrime(), ident_hash, IDENT_KEY_SZ, IDENT_PORT, MemBuf::init(), hash_link::key, Ident::IdentStateData::queryMsg, Squid_MaxFD, JobWait< Job >::start(), TheConfig, and xstrdup.
Referenced by IdentLookup::checkForAsync(), Adaptation::Initiator::initiateAdaptation(), and ConnStateData::whenClientIpKnown().
Variable Documentation
◆ Close
|
static |
Definition at line 73 of file Ident.cc.
Referenced by Ident::IdentStateData::~IdentStateData(), and Log::TcpLogger::Open().
◆ ConnectDone
◆ ident_hash
|
static |
Definition at line 76 of file Ident.cc.
Referenced by Ident::IdentStateData::~IdentStateData(), and Start().
◆ ReadReply
◆ TheConfig
|
extern |
Definition at line 81 of file Ident.cc.
Referenced by Start(), and ConnStateData::whenClientIpKnown().
◆ Timeout
|
static |
Definition at line 74 of file Ident.cc.
Referenced by Comm::MortalReadTimeout().