Function mrpt::comms::net::DNS_resolve_async
Defined in File net_utils.h
Function Documentation
-
bool mrpt::comms::net::DNS_resolve_async(const std::string &server_name, std::string &out_ip, const unsigned int timeout_ms = 3000)
Resolve a server address by its name, returning its IP address as a string - This method has a timeout for the maximum time to wait for the DNS server. For example: server_name=”www.google.com” -> out_ip=”209.85.227.99”
- Returns:
true on success, false on timeout or other error.