warning when can't connect to an ip

Adding a warning (with the error message) when can't connect to a host. And adding the host name into the error message when failed.

What should be the name of this function? mongoc_get_c_string_ip()?