since the code is blocking, it might never return for a host that it cannot reach. The timeout setting can be set when using the socket.tcp functions for a server/client type setting.
So if you have
socket.connect("www.gideromobile.com", 80)
and
socket.connect("not.valid.com",80)
the first part will return but the connection to the not.valid would take an arbitrary time before it returns (if it does).
It did not work for me earlier as I was not considering it with the tcp communication and relying on the returned handle. The timeout works perfectly fine now.
Comments
http://appcodingeasy.com/Gideros-Mobile/Using-LuaSocket-in-Gideros
With connecting I dunno if it would change anything if you set timeout before connecting?
So if you have
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
So maybe not using a shorthand could help as:
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
http://forum.micasaverde.com/index.php?topic=11182.0
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps