IPv6

IPv6

Appstore: Supporting IPv6-only Networks 提审必须支持IPv6,禁止IPv4的API

游戏开发atool 发表了文章 • 0 个评论 • 2432 次浏览 • 2016-05-10 18:15 • 来自相关话题

2016年06月后,appstore要求上线的APP必须支持ipv6,具体:
 
1. If you’re writing a client-side app using high-level networking APIs such as NSURLSession and the CFNetwork frameworks and you connect by name, you should not need to change anything for your app to work with IPv6 addresses. If you aren’t connecting by name, you probably should be. See Avoid Resolving DNS Names Before Connecting to a Host to learn how. For information on CFNetwork, see CFNetwork Framework Reference. 
2. If you’re writing a server-side app or other low-level networking app, you need to make sure your socket code works correctly with both IPv4 and IPv6 addresses. Refer to RFC4038: Application Aspects of IPv6 Transition.

怎么检查自己的APP是否能过关?主要有以下几项:

一、代码中IP地址
只要存在IP格式的字符串(正则为:\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})都尽量删除,不排除appstore就是通过正则来检查的。建议全部换成域名,然后通过域名解析。
 
二、API方法
一些只支持IPv4的方法不可在用。具体有以下:inet_addr()

inet_aton()

inet_lnaof()

inet_makeaddr()

inet_netof()

inet_network()

inet_ntoa()

inet_ntoa_r()

bindresvport()

getipv4sourcefilter()

setipv4sourcefilter()如果用到了下面左边的这些IPv4的类型(常量值),那么它们相应的IPv6类型也需要做处理:





关于苹果要求IPv6:https://developer.apple.com/news/?id=05042016a 查看全部
2016年06月后,appstore要求上线的APP必须支持ipv6,具体:
 
1. If you’re writing a client-side app using high-level networking APIs such as NSURLSession and the CFNetwork frameworks and you connect by name, you should not need to change anything for your app to work with IPv6 addresses. If you aren’t connecting by name, you probably should be. See Avoid Resolving DNS Names Before Connecting to a Host to learn how. For information on CFNetwork, see CFNetwork Framework Reference. 
2. If you’re writing a server-side app or other low-level networking app, you need to make sure your socket code works correctly with both IPv4 and IPv6 addresses. Refer to RFC4038: Application Aspects of IPv6 Transition.

怎么检查自己的APP是否能过关?主要有以下几项:

一、代码中IP地址
只要存在IP格式的字符串(正则为:\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})都尽量删除,不排除appstore就是通过正则来检查的。建议全部换成域名,然后通过域名解析。
 
二、API方法
一些只支持IPv4的方法不可在用。具体有以下:
inet_addr()

inet_aton()

inet_lnaof()

inet_makeaddr()

inet_netof()

inet_network()

inet_ntoa()

inet_ntoa_r()

bindresvport()

getipv4sourcefilter()

setipv4sourcefilter()
如果用到了下面左边的这些IPv4的类型(常量值),那么它们相应的IPv6类型也需要做处理:
f2bcddfde26919a9c3832cdaf0bc56de.png


关于苹果要求IPv6:https://developer.apple.com/news/?id=05042016a

Appstore: Supporting IPv6-only Networks 提审必须支持IPv6,禁止IPv4的API

游戏开发atool 发表了文章 • 0 个评论 • 2432 次浏览 • 2016-05-10 18:15 • 来自相关话题

2016年06月后,appstore要求上线的APP必须支持ipv6,具体:
 
1. If you’re writing a client-side app using high-level networking APIs such as NSURLSession and the CFNetwork frameworks and you connect by name, you should not need to change anything for your app to work with IPv6 addresses. If you aren’t connecting by name, you probably should be. See Avoid Resolving DNS Names Before Connecting to a Host to learn how. For information on CFNetwork, see CFNetwork Framework Reference. 
2. If you’re writing a server-side app or other low-level networking app, you need to make sure your socket code works correctly with both IPv4 and IPv6 addresses. Refer to RFC4038: Application Aspects of IPv6 Transition.

怎么检查自己的APP是否能过关?主要有以下几项:

一、代码中IP地址
只要存在IP格式的字符串(正则为:\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})都尽量删除,不排除appstore就是通过正则来检查的。建议全部换成域名,然后通过域名解析。
 
二、API方法
一些只支持IPv4的方法不可在用。具体有以下:inet_addr()

inet_aton()

inet_lnaof()

inet_makeaddr()

inet_netof()

inet_network()

inet_ntoa()

inet_ntoa_r()

bindresvport()

getipv4sourcefilter()

setipv4sourcefilter()如果用到了下面左边的这些IPv4的类型(常量值),那么它们相应的IPv6类型也需要做处理:





关于苹果要求IPv6:https://developer.apple.com/news/?id=05042016a 查看全部
2016年06月后,appstore要求上线的APP必须支持ipv6,具体:
 
1. If you’re writing a client-side app using high-level networking APIs such as NSURLSession and the CFNetwork frameworks and you connect by name, you should not need to change anything for your app to work with IPv6 addresses. If you aren’t connecting by name, you probably should be. See Avoid Resolving DNS Names Before Connecting to a Host to learn how. For information on CFNetwork, see CFNetwork Framework Reference. 
2. If you’re writing a server-side app or other low-level networking app, you need to make sure your socket code works correctly with both IPv4 and IPv6 addresses. Refer to RFC4038: Application Aspects of IPv6 Transition.

怎么检查自己的APP是否能过关?主要有以下几项:

一、代码中IP地址
只要存在IP格式的字符串(正则为:\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})都尽量删除,不排除appstore就是通过正则来检查的。建议全部换成域名,然后通过域名解析。
 
二、API方法
一些只支持IPv4的方法不可在用。具体有以下:
inet_addr()

inet_aton()

inet_lnaof()

inet_makeaddr()

inet_netof()

inet_network()

inet_ntoa()

inet_ntoa_r()

bindresvport()

getipv4sourcefilter()

setipv4sourcefilter()
如果用到了下面左边的这些IPv4的类型(常量值),那么它们相应的IPv6类型也需要做处理:
f2bcddfde26919a9c3832cdaf0bc56de.png


关于苹果要求IPv6:https://developer.apple.com/news/?id=05042016a