A brief file description. More...
#include "libts.h"
#include "P_EventSystem.h"
#include "I_HostDB.h"
#include "P_DNS.h"
#include "P_MultiCache.h"
#include "P_HostDBProcessor.h"
Go to the source code of this file.
Defines | |
#define | HOSTDB_MODULE_VERSION |
Functions | |
HostDBInfo * | probe (ProxyMutex *mutex, HostDBMD5 const &md5, bool ignore_timeout) |
void | make_md5 (INK_MD5 &md5, const char *hostname, int len, int port, char const *pDNSServers, HostDBMark mark) |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file P_HostDB.h.
#define HOSTDB_MODULE_VERSION |
makeModuleVersion( \ HOSTDB_MODULE_MAJOR_VERSION, \ HOSTDB_MODULE_MINOR_VERSION, \ PRIVATE_MODULE_HEADER)
Definition at line 52 of file P_HostDB.h.
void make_md5 | ( | INK_MD5 & | md5, | |
const char * | hostname, | |||
int | len, | |||
int | port, | |||
char const * | pDNSServers, | |||
HostDBMark | mark | |||
) |
Definition at line 534 of file HostDB.cc.
References ink_code_incr_md5_final(), ink_code_incr_md5_init(), and ink_code_incr_md5_update().
Referenced by HostDBMD5::refresh().
HostDBInfo* probe | ( | ProxyMutex * | mutex, | |
HostDBMD5 const & | md5, | |||
bool | ignore_timeout | |||
) |
Definition at line 620 of file HostDB.cc.
References MultiCacheHeader::buckets, cluster_machine_at_depth(), Debug, MultiCache< C >::delete_block(), HostDBContinuation::do_dns(), HostDBInfo::failed(), fold_md5(), HostDBMD5::hash, HostDBInfo::hits, HostDBMD5::host_len, HostDBMD5::host_name, HostDBContinuation::Options::host_res_style, host_res_style_for(), hostdb_enable, HOSTDB_INCREMENT_DYN_STAT, hostdb_ttl_expires_stat, hostDBContAllocator, HostDBInfo::hostname(), HostDBContinuation::init(), ink_assert, HostDBInfo::ip, HostDBInfo::ip_interval(), HostDBInfo::ip_timeout_interval, HostDBInfo::ip_timestamp, HostDBInfo::is_deleted(), is_dotted_form_hostname(), HostDBInfo::is_ip_fail_timeout(), HostDBInfo::is_ip_stale(), HostDBInfo::is_ip_timeout(), MultiCacheHeader::levels, MultiCacheBase::lock_for_bucket(), MultiCache< C >::lookup_block(), master_hash(), HostDBInfo::md5_high, HostDBInfo::refresh_ip(), HostDBInfo::reverse_dns, HostDBInfo::round_robin, HostDBInfo::rr(), HostDBInfo::serve_stale_but_revalidate(), this_ethread(), and ProxyMutex::thread_holding.
Referenced by HostDBContinuation::dnsEvent(), HostDBProcessor::getbyname_imm(), HostDBProcessor::getSRVbyname_imm(), MakeHttpProxyAcceptor(), HostDBContinuation::probeEvent(), HostDBContinuation::removeEvent(), HostDBProcessor::setby(), and HostDBContinuation::setbyEvent().