int err = getaddrinfo(host.c_str(), port.c_str(), NULL, &ai);
if (err == -1) {
log(WARNING, "[%s] Lookup of '%s' failed (%s).",
int err = getaddrinfo(host.c_str(), port.c_str(), NULL, &ai);
if (err == -1) {
log(WARNING, "[%s] Lookup of '%s' failed (%s).",