Namespaces | |
dynamics | |
msgs | |
Classes | |
class | TrajectoryTime |
Represents a time stamp to query the trajectory of rcvisard's slam module. More... | |
Functions | |
bool | getThisHostsIP (std::string &this_hosts_ip, const std::string &other_hosts_ip, const std::string &network_interface="") |
Convenience function to scan this host's (multiple) network interface(s) for a valid IP address. More... | |
bool | getThisHostsIP (string &this_hosts_ip, const string &other_hosts_ip, const string &network_interface) |
uint32_t | ipToUInt (const std::string &ip) |
Converts a string-represented ip into uint (e.g. More... | |
bool | isIPInRange (const std::string &ip, const std::string &network, const std::string &mask) |
Checks if a given ip is in range of a network defined by ip/subnet taken from: https://www.stev.org/post/ccheckanipaddressisinaipmask. More... | |
bool | isValidIPAddress (const std::string &ip) |
Checks if given string is a valid IP address. More... | |
bool rc::getThisHostsIP | ( | std::string & | this_hosts_ip, |
const std::string & | other_hosts_ip, | ||
const std::string & | network_interface = "" |
||
) |
Convenience function to scan this host's (multiple) network interface(s) for a valid IP address.
Users may give a hint either be specifying the preferred network interface to be used, or the IP address of another host that should be reachable from the returned IP address.
this_hosts_ip | IP address to be used as stream destination (only valid if returned true) |
other_hosts_ip | rc_visard's IP address, e.g. "192.168.0.20" |
network_interface | name, e.g. eth0, wlan0, ... |
bool rc::getThisHostsIP | ( | string & | this_hosts_ip, |
const string & | other_hosts_ip, | ||
const string & | network_interface | ||
) |
Definition at line 236 of file net_utils.cc.
uint32_t rc::ipToUInt | ( | const std::string & | ip | ) |
Converts a string-represented ip into uint (e.g.
for subnet masking) taken from: https://www.stev.org/post/ccheckanipaddressisinaipmask
ip |
Definition at line 56 of file net_utils.cc.
bool rc::isIPInRange | ( | const std::string & | ip, |
const std::string & | network, | ||
const std::string & | mask | ||
) |
Checks if a given ip is in range of a network defined by ip/subnet taken from: https://www.stev.org/post/ccheckanipaddressisinaipmask.
ip | |
network | |
mask |
Definition at line 73 of file net_utils.cc.
bool rc::isValidIPAddress | ( | const std::string & | ip | ) |
Checks if given string is a valid IP address.
ip | IP address to be checked |
Definition at line 279 of file net_utils.cc.