cancelling connecting

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
the underminer
Posts: 123
Joined: Mon Oct 03, 2005 4:25 am
Location: Netherlands

cancelling connecting

Post by the underminer »

Is it possible to let the user abort the connection attempt in luaplayer 0.16?
When I have this code:

Code: Select all

Wlan.init()
			Wlan.useConnectionConfig(SelConfig)
			socket, error = Socket.connect("ikhoefgeen.nl", 80)
The script execution halts after Wlan.useConnectionConfig(SelConfig) until the connection is set up. If the connection attempt fails, then luaplayer keeps trying, and the only thing you can do is press home to exit the app
Behold! The Underminer got hold of a PSP
Altair
Posts: 76
Joined: Sat May 20, 2006 2:33 am
Location: The Netherlands

Post by Altair »

I would like to know that as well.

[dutch]Wat is dat voor rare site trouwens dat ikhoefgeen.nl?[/dutch]
the underminer
Posts: 123
Joined: Mon Oct 03, 2005 4:25 am
Location: Netherlands

Post by the underminer »

[dutch]Een maat van me heeft die aangevraagd. Ik ben nog steeds op zoek naar een interessante domein-naam voor een website die ik voor mijn game heb gemaakt[/dutch]
Behold! The Underminer got hold of a PSP
infidel
Posts: 3
Joined: Mon Jun 04, 2007 10:02 am

Post by infidel »

I can't believe socket.connect was put into LUA without a timeout...
cyberdog666
Posts: 2
Joined: Wed Feb 21, 2007 12:43 pm

Post by cyberdog666 »

You people are on crack, there is a timeout for both WLAN and socket connection.
Post Reply