CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
anonymous_namespace{resolv_conf_event_handler.cc} Namespace Reference

Functions

bool GetFirstAddress (const ResolvConfEventHandler::AddressList &address_list, int address_type, std::string *address)
 

Detailed Description

This file is part of the CernVM File System.

Function Documentation

bool anonymous_namespace{resolv_conf_event_handler.cc}::GetFirstAddress ( const ResolvConfEventHandler::AddressList address_list,
int  address_type,
std::string *  address 
)

Get the first address of type address_type from the list of addresses

Parameters
address_listList of IP addresses
address_typeType of IP address desired; Can be either 4 or 6
address(out) The first address found

Definition at line 23 of file resolv_conf_event_handler.cc.

Referenced by ResolvConfEventHandler::SetDnsAddress().

Here is the caller graph for this function: