iOS app support Ipv6-only

Source: Internet
Author: User

Recently, Apple issued a statement: Since June 1 this year, all applications submitted to the Apple App Store must be compatible with the latest Internet Protocol--IPV6-ONLY standards for hardware identification and network routing.

So the question is, does the current app support IPv6? , which need to support IPv6?

One: Test whether your app currently supports IPv6 and will not be able to submit to the store after June 1 if not supported

Here's a copy of Wwdc2015 's video about IPv6 https://developer.apple.com/videos/play/wwdc2015/719/

Test by sharing a IPv6 network with your Mac

First your Mac needs to have two network card, I test with MBP, using wired Internet, using WiFi network card to share the network

1. Open System Preferences----hold down the OPTION key------click, share

2. Also hold down the OPTION key----tick the left side of the Internet share----the right source---Select Local Ethernet-----Share port to select WiFi; There is a NAT64 network, options, check on;

Can create a IPv6 network, the test machine to connect to the network, testing the app's communication situation;

Second: Whether the current app needs to support IPv6

Described on Apple's documentation;

That is to say, using the Advanced network programming API provided by Apple, do not need processing; such as: Nsurlsession,cfnetwork,nsurlconnection, WebKit, etc.

But the need to use lower sockets to support IPv6;

And the use of the following interfaces are required

    • inet_addr()

    • inet_aton()

    • inet_lnaof()

    • inet_makeaddr()

    • inet_netof()

    • inet_network()

    • inet_ntoa()

    • inet_ntoa_r()

    • bindresvport()

    • getipv4sourcefilter()

    • setipv4sourcefilter()

Reference: https://developer.apple.com/library/mac/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/ understandingandpreparingfortheipv6transition/understandingandpreparingfortheipv6transition.html#//apple_ref/ Doc/uid/tp40010220-ch213-sw1

iOS app support ipv6-only

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.