Container for an MD5 hash and its dependent data. More...
#include <P_HostDBProcessor.h>
Public Types | |
typedef HostDBMD5 | self |
Self reference type. | |
Public Member Functions | |
HostDBMD5 () | |
Default constructor. | |
void | refresh () |
Recompute and update the MD5 hash. | |
Data Fields | |
INK_MD5 | hash |
The hash value. | |
char const * | host_name |
Host name. | |
int | host_len |
Length of _host_name. | |
IpAddr | ip |
IP address. | |
int | port |
IP port (host order). | |
DNSServer * | dns_server |
DNS server. | |
HostDBMark | db_mark |
Mark / type of record. |
Container for an MD5 hash and its dependent data.
This handles both the host name and raw address cases.
Definition at line 411 of file P_HostDBProcessor.h.
typedef HostDBMD5 HostDBMD5::self |
Self reference type.
Definition at line 412 of file P_HostDBProcessor.h.
void HostDBMD5::refresh | ( | ) |
Recompute and update the MD5 hash.
Definition at line 165 of file HostDB.cc.
References IpAddr::_addr, IpAddr::_byte, db_mark, dns_server, hash, host_len, host_name, ip, IpAddr::isIp6(), make_md5(), memcpy, port, TS_IP6_SIZE, and DNSServer::x_dns_ip_line.
Referenced by HostDBProcessor::getbyname_imm(), HostDBProcessor::getSRVbyname_imm(), HostDBContinuation::refresh_MD5(), HostDBProcessor::setby(), and HostDBProcessor::setby_srv().
Mark / type of record.
Definition at line 424 of file P_HostDBProcessor.h.
Referenced by HostDBContinuation::dnsEvent(), HostDBContinuation::do_dns(), get_hostinfo_ClusterFunction(), HostDBProcessor::getbyname_imm(), HostDBProcessor::getSRVbyname_imm(), HostDBContinuation::is_byname(), HostDBContinuation::is_srv(), put_hostinfo_ClusterFunction(), refresh(), HostDBProcessor::setby(), and HostDBProcessor::setby_srv().
DNS server.
Not strictly part of the MD5 data but it's both used by HostDBContinuation
and provides access to MD5 data. It's just handier to store it here for both uses.
Definition at line 423 of file P_HostDBProcessor.h.
Referenced by HostDBContinuation::do_dns(), get_hostinfo_ClusterFunction(), HostDBProcessor::getbyname_imm(), and refresh().
The hash value.
Definition at line 414 of file P_HostDBProcessor.h.
Referenced by HostDBContinuation::clusterEvent(), HostDBContinuation::dnsEvent(), HostDBContinuation::dnsPendingEvent(), HostDBContinuation::do_get_response(), get_hostinfo_ClusterFunction(), HostDBProcessor::getbyname_imm(), HostDBProcessor::getSRVbyname_imm(), HostDBContinuation::HostDBContinuation(), HostDBContinuation::init(), HostDBContinuation::insert(), HostDBContinuation::key_partition(), HostDBContinuation::lookup_done(), HostDBContinuation::make_get_message(), HostDBContinuation::make_put_message(), HostDBContinuation::master_machine(), probe(), put_hostinfo_ClusterFunction(), refresh(), HostDBContinuation::refresh_MD5(), HostDBContinuation::remove_trigger_pending_dns(), HostDBContinuation::set_check_pending_dns(), and HostDBProcessor::setby().
Length of _host_name.
Definition at line 417 of file P_HostDBProcessor.h.
Referenced by get_hostinfo_ClusterFunction(), HostDBProcessor::getbyname_imm(), HostDBProcessor::getSRVbyname_imm(), HostDBContinuation::init(), HostDBContinuation::insert(), HostDBContinuation::lookup_done(), HostDBContinuation::make_get_message(), HostDBContinuation::make_put_message(), probe(), put_hostinfo_ClusterFunction(), refresh(), HostDBProcessor::setby(), and HostDBProcessor::setby_srv().
char const* HostDBMD5::host_name |
Host name.
Definition at line 416 of file P_HostDBProcessor.h.
Referenced by HostDBContinuation::clusterEvent(), HostDBContinuation::clusterResponseEvent(), HostDBContinuation::dnsEvent(), HostDBContinuation::do_dns(), get_hostinfo_ClusterFunction(), HostDBProcessor::getbyname_imm(), HostDBProcessor::getSRVbyname_imm(), HostDBContinuation::init(), HostDBContinuation::insert(), HostDBContinuation::lookup_done(), HostDBContinuation::make_get_message(), HostDBContinuation::make_put_message(), probe(), HostDBContinuation::probeEvent(), put_hostinfo_ClusterFunction(), refresh(), HostDBContinuation::removeEvent(), HostDBProcessor::setby(), HostDBProcessor::setby_srv(), and HostDBContinuation::setbyEvent().
IP address.
Definition at line 418 of file P_HostDBProcessor.h.
Referenced by HostDBContinuation::clusterEvent(), HostDBContinuation::clusterResponseEvent(), HostDBContinuation::dnsEvent(), HostDBContinuation::do_dns(), get_hostinfo_ClusterFunction(), HostDBContinuation::lookup_done(), HostDBContinuation::make_get_message(), HostDBContinuation::probeEvent(), put_hostinfo_ClusterFunction(), refresh(), HostDBContinuation::removeEvent(), HostDBProcessor::setby(), and HostDBContinuation::setbyEvent().
int HostDBMD5::port |
IP port (host order).
Definition at line 419 of file P_HostDBProcessor.h.
Referenced by get_hostinfo_ClusterFunction(), HostDBProcessor::getbyname_imm(), HostDBProcessor::getSRVbyname_imm(), HostDBContinuation::make_get_message(), put_hostinfo_ClusterFunction(), refresh(), HostDBProcessor::setby(), and HostDBProcessor::setby_srv().