Jpp  18.4.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions | Variables
JNetwork.hh File Reference

Hostname and IP address functions. More...

#include <unistd.h>
#include <netdb.h>
#include <sys/types.h>
#include <ifaddrs.h>
#include <string.h>
#include <string>
#include <sstream>
#include <vector>
#include "JLang/JException.hh"

Go to the source code of this file.

Namespaces

 JSYSTEM
 Auxiliary classes and methods for operating system calls.
 
 JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Functions

std::string JSYSTEM::getHostname ()
 Get host name. More...
 
std::string JSYSTEM::getHostname (const int ip)
 Get host name. More...
 
int JSYSTEM::getIPnumber (const std::string &host_name)
 Get IP number. More...
 
int JSYSTEM::getIPnumber ()
 Get IP number. More...
 
std::string JSYSTEM::getIPaddress (const int ip)
 Get IP address (decimal-dot notation). More...
 
std::string JSYSTEM::getIPaddress ()
 Get IP address (decimal-dot notation). More...
 
unsigned short JSYSTEM::getSubaddress (const int ip)
 Get host identifier within network. More...
 
unsigned short JSYSTEM::getSubaddress ()
 Get host identifier within network. More...
 
std::vector< std::stringJSYSTEM::getListOfIPaddresses ()
 Get list of IP address (decimal-dot notation). More...
 

Variables

static const JCompareEndian JSYSTEM::compareEndian
 Function object operator. More...
 

Detailed Description

Hostname and IP address functions.

Author
mdejong

Definition in file JNetwork.hh.

Variable Documentation

const bool endian

Definition at line 56 of file JNetwork.hh.