NSURLConnection方法与IPv6一起使用 [英] NSURLConnection method use with IPv6

查看:134
本文介绍了NSURLConnection方法与IPv6一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在NSURLConnection中使用SOAP方法对我的项目进行了编码.最近的新版本更新拒绝了ios9 +引起ipV6问题的原因

I have code my project using SOAP methods in NSURLConnection.Recently new version update reject it cause of ipV6 issue for ios9+

现在,我要检查是否支持ipV6,需要将代码转换为标准的网络API,例如Apple提供的NSURLSession和CFNetwork API.

Now i check that for supporting ipV6 you need to convert code to standard networking APIs like NSURLSession and CFNetwork APIs provided by apple.

是否有其他选择,而无需转换超过350种以上的api,它将与ipV6一起使用.

Is there alternative without converting my more then 350+ api , it will work with ipV6 .

推荐答案

现在不建议使用NSURLConnection,这只是时间问题,您的代码将无法再使用新的iOS更新. 所以无论如何,您最好早晚使用较新的API进行计划.

Now that NSURLConnection has been deprecated it's just a question of time before your code stop working with new iOS updates. So whatever, you'd better plan using newer APIs, sooner or later.

NSURLConnection应该仍可与IPv6一起使用.您确定不是因为您一直在使用IP文字而不是域名吗?例如:禁止使用类似123.123.23.3的IP.

NSURLConnection should still work with IPv6 tho. Are you sure it's not because you have been using an IP literal instead of domain name ? Ex: using IP like 123.123.23.3 is forbidden.

也;请查看过渡指南.

它应该暗示是什么导致了苹果的拒绝

It should hint what triggered apple rejection

这篇关于NSURLConnection方法与IPv6一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆