sf::IpAddress::resolve
This code is better expressed as a constructor since that's the only place where it's used.