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


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{}::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

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

Referenced by ResolvConfEventHandler::SetDnsAddress().

Here is the caller graph for this function: