Isn't the "host.find()" part unnecessary since inet_addr() returns INADDR_NONE on all invalid inputs?