Supporting IPv6-only Networks

Got some news about AppStore review changes.

At WWDC 2015 we announced the transition to IPv6-only network services in iOS 9. Starting June 1, 2016 all apps submitted to the App Store must support IPv6-only networking. Most apps will not require any changes because IPv6 is already supported by NSURLSession and CFNetwork APIs.

If your app uses IPv4-specific APIs or hard-coded IP addresses, you will need to make some changes. Learn how to ensure compatibility by reading  Supporting IPv6 DNS64/NAT64 Networksand watch Your App and Next Generation Networks.

Any idea what is all about for Corona devs?

Asking Engineering.

Thanks Rob, looking forward for good news.

Any update Rob?

We are very aware of this deadline. We believe that our network.* API’s are already compliant. In the next daily build or so, will be updates to the socket.* API’s that will make them IPV6 compatible. Of course we need to test all of this thru and thru, but we don’t think there will be a problem.

Rob

Hi,

I am getting following issue while creating tcp socket in the daily build 2016.2892:

 ERROR: Runtime error
                    /Users/Rajeev/Desktop/API-TEST/AppWarp/LookupChannel.lua:12: attempt to index global ‘socket’ (a nil value)
                    stack traceback:
                        /Users/Rajeev/Desktop/API-TEST/AppWarp/LookupChannel.lua:12: in function ‘socket_connect’
                        /Users/Rajeev/Desktop/API-TEST/AppWarp/WarpClient.lua:448: in function ‘Loop’
                        /Users/Rajeev/Desktop/API-TEST/main.lua:29: in function </Users/Rajeev/Desktop/API-TEST/main.lua:28>
                        ?: in function <?:169>

The same was working fine with latest public release of corona sdk.

My code is as follows:

require “socket” 
local LookupChannel = {}    
local client_socket = nil

function LookupChannel.socket_connect()

  if(client_socket == nil) then

    client_socket = socket.tcp(); // I am getting the exception for this line

    client_socket:settimeout(0)

  end

end

Could you please guide me for the changes required to make it compatible to the latest changes done with Corona SDK?

I believe that the changes are related to IPV6 compatibility.

Any help would be highly appreciated.

Thanks in advance.

Regards,

Rajeev

There should be no real visible difference.

You might want to change your require to:

local socket = require “socket”

Rob

Syntax like:

require "socket"

is no longer supported by many third party Lua modules and, in this instance, specifically not supported by LuaSocket since we updated to version 3.0

You should explicitly name the variable that points at the library like so:

local socket = require("socket")

Documentation for LuaSocket can be found online at places like http://www.luatex.org/svn/trunk/source/texk/web2c/luatexdir/luasocket/doc/reference.html

Asking Engineering.

Thanks Rob, looking forward for good news.

Any update Rob?

We are very aware of this deadline. We believe that our network.* API’s are already compliant. In the next daily build or so, will be updates to the socket.* API’s that will make them IPV6 compatible. Of course we need to test all of this thru and thru, but we don’t think there will be a problem.

Rob

Hi,

I am getting following issue while creating tcp socket in the daily build 2016.2892:

 ERROR: Runtime error
                    /Users/Rajeev/Desktop/API-TEST/AppWarp/LookupChannel.lua:12: attempt to index global ‘socket’ (a nil value)
                    stack traceback:
                        /Users/Rajeev/Desktop/API-TEST/AppWarp/LookupChannel.lua:12: in function ‘socket_connect’
                        /Users/Rajeev/Desktop/API-TEST/AppWarp/WarpClient.lua:448: in function ‘Loop’
                        /Users/Rajeev/Desktop/API-TEST/main.lua:29: in function </Users/Rajeev/Desktop/API-TEST/main.lua:28>
                        ?: in function <?:169>

The same was working fine with latest public release of corona sdk.

My code is as follows:

require “socket” 
local LookupChannel = {}    
local client_socket = nil

function LookupChannel.socket_connect()

  if(client_socket == nil) then

    client_socket = socket.tcp(); // I am getting the exception for this line

    client_socket:settimeout(0)

  end

end

Could you please guide me for the changes required to make it compatible to the latest changes done with Corona SDK?

I believe that the changes are related to IPV6 compatibility.

Any help would be highly appreciated.

Thanks in advance.

Regards,

Rajeev

There should be no real visible difference.

You might want to change your require to:

local socket = require “socket”

Rob

Syntax like:

require "socket"

is no longer supported by many third party Lua modules and, in this instance, specifically not supported by LuaSocket since we updated to version 3.0

You should explicitly name the variable that points at the library like so:

local socket = require("socket")

Documentation for LuaSocket can be found online at places like http://www.luatex.org/svn/trunk/source/texk/web2c/luatexdir/luasocket/doc/reference.html

I know sockets no Corona Labs develop, but …   In may 2016 i maked a app for iOS and android, the app work fine with TCP and UDP sockeys.

Now i nedd fix any app problems, and in Corona Labs Windows no work and in Apple the emualtion is “flozed” … si i change socket.udp for socket.udp6 then in apple no “emulation frozen” but not work.

Resum i think, the socket change for apple support change ipv6 is not backward compatible.

Can anybody help me?

I know sockets no Corona Labs develop, but …   In may 2016 i maked a app for iOS and android, the app work fine with TCP and UDP sockeys.

Now i nedd fix any app problems, and in Corona Labs Windows no work and in Apple the emualtion is “flozed” … si i change socket.udp for socket.udp6 then in apple no “emulation frozen” but not work.

Resum i think, the socket change for apple support change ipv6 is not backward compatible.

Can anybody help me?