Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
network-util.cc File Reference
#include "util/network-util.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <limits.h>
#include <sstream>
#include <vector>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
#include "util/debug-util.h"
#include "util/error-util.h"
#include <util/string-parser.h>
#include "common/names.h"
Include dependency graph for network-util.cc:

Go to the source code of this file.

Namespaces

 impala
 This file contains type definitions that are used throughout the code base.
 

Functions

static const string impala::LOCALHOST ("127.0.0.1")
 
Status impala::GetHostname (string *hostname)
 
Status impala::HostnameToIpAddrs (const string &name, vector< string > *addresses)
 
bool impala::FindFirstNonLocalhost (const vector< string > &addresses, string *addr)
 
TNetworkAddress impala::MakeNetworkAddress (const string &hostname, int port)
 
TNetworkAddress impala::MakeNetworkAddress (const string &address)
 
bool impala::IsWildcardAddress (const string &ipaddress)
 
string impala::TNetworkAddressToString (const TNetworkAddress &address)
 Utility method to print address as address:port. More...
 
ostream & impala::operator<< (ostream &out, const TNetworkAddress &hostport)