Platform-dependent libraries Windows/MacOS provides high-level programming library Which would hide IPv4/v6 differences connect_to_url("http://www.kame.net/"); In such case, there's no need to modify application Upgrading library should be enough MacOS: CFNetwork API