Ignition Transport

API Reference

8.1.0
NetUtils.hh File Reference
#include <string>
#include <vector>
#include "ignition/transport/config.hh"
#include "ignition/transport/Export.hh"

Go to the source code of this file.

Namespaces

 ignition
 
 ignition::transport
 

Functions

std::string determineHost ()
 Determine IP or hostname. Reference: https://github.com/ros/ros_comm/blob/hydro-devel/clients/ roscpp/src/libros/network.cpp. More...
 
std::vector< std::stringdetermineInterfaces ()
 Determine the list of network interfaces for this machine. Reference: https://github.com/ros/ros_comm/blob/hydro-devel/clients/ roscpp/src/libros/network.cpp. More...
 
std::string hostname ()
 Determine the computer's hostname. More...
 
int hostnameToIp (char *_hostname, std::string &_ip)
 Determine if an IP is private. More...
 
bool isPrivateIP (const char *_ip)
 Determine if an IP is private. Reference: https://github.com/ros/ros_comm/blob/hydro-devel/clients/ roscpp/src/libros/network.cpp. More...
 
std::string username ()
 Determine your login name. More...