Namespaces | Classes | Functions
rc Namespace Reference

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...
 

Function Documentation

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.

Parameters
this_hosts_ipIP address to be used as stream destination (only valid if returned true)
other_hosts_iprc_visard's IP address, e.g. "192.168.0.20"
network_interfacename, e.g. eth0, wlan0, ...
Returns
true if valid IP address was found among network interfaces
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

Parameters
ip
Returns

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.

Parameters
ip
network
mask
Returns

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.

Parameters
ipIP address to be checked
Returns
true if valid

Definition at line 279 of file net_utils.cc.



rc_dynamics_api
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Endres
autogenerated on Thu May 9 2019 02:51:36