Public Types | Public Member Functions | Data Fields

HostDBMD5 Struct Reference

Container for an MD5 hash and its dependent data. More...

#include <P_HostDBProcessor.h>

Collaboration diagram for HostDBMD5:
Collaboration graph
[legend]

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).
DNSServerdns_server
 DNS server.
HostDBMark db_mark
 Mark / type of record.

Detailed Description

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.


Member Typedef Documentation

Self reference type.

Definition at line 412 of file P_HostDBProcessor.h.


Constructor & Destructor Documentation

HostDBMD5::HostDBMD5 (  ) 

Default constructor.

Definition at line 183 of file HostDB.cc.


Member Function Documentation

void HostDBMD5::refresh (  ) 

Field Documentation

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().

char const* HostDBMD5::host_name

The documentation for this struct was generated from the following files: