DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
get_ips.hpp File Reference
#include "logging/Logging.hpp"
#include "utilities/Issues.hpp"
#include <arpa/nameser.h>
#include <ifaddrs.h>
#include <netdb.h>
#include <netinet/in.h>
#include <resolv.h>
#include <sys/types.h>
#include <cerrno>
#include <string>
#include <vector>
Include dependency graph for get_ips.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  dunedaq
 The DUNE-DAQ namespace.
 
namespace  dunedaq::utilities
 

Functions

std::vector< std::string > dunedaq::utilities::get_hostname_ips (std::string hostname)
 
std::string dunedaq::utilities::get_interface_ip (std::string eth_device_name, bool throw_if_missing=false)
 

Detailed Description

Translate a hostname to a list of IP addresses associated with that hostname in DNS, or an interface name to the first bound IP for that interface (via getnameinfo)

This is part of the DUNE DAQ Application Framework, copyright 2020. Licensing/copyright details are in the COPYING file that you should have received with this code.

Definition in file get_ips.hpp.