NetUtils.hh File Reference
#include <string>
#include <vector>
#include "gz/transport/config.hh"
#include "gz/transport/Export.hh"
Go to the source code of this file.
Namespaces | |
namespace | gz |
namespace | gz::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. | |
std::vector< std::string > | determineInterfaces () |
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. | |
std::string | hostname () |
Determine the computer's hostname. | |
int | hostnameToIp (char *_hostname, std::string &_ip) |
Determine if an IP is private. | |
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. | |
std::string | username () |
Determine your login name. | |