How to process a wifi closed exception?

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

Nicholas10128
Posts: 29
Joined: 28 Feb 2012, 08:15

How to process a wifi closed exception?

Postby Nicholas10128 » 04 Jun 2012, 10:01

I have found that when the wifi on iOS closed by the router, no OnDisconnection event fired of the client.
How can I process it?
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: How to process a wifi closed exception?

Postby A51Integrated » 04 Jun 2012, 13:16

The event should be onConnectionLost.

Code: Select all

-(void)onConnectionLost:(SFSEvent *)evt
 {
    NSLog(@"Ouch, connection was lost. Reason: %@", [evt.params objectForKey:@"reason"]);
 }
A51 Integrated
http://a51integrated.com / +1 416-703-2300
Nicholas10128
Posts: 29
Joined: 28 Feb 2012, 08:15

Re: How to process a wifi closed exception?

Postby Nicholas10128 » 06 Jun 2012, 08:12

I have certainly processed the CONNECTION_LOST event.
This event never fired When wifi was closed on iPad.
That's why I asked this question.
Nicholas10128
Posts: 29
Joined: 28 Feb 2012, 08:15

Re: How to process a wifi closed exception?

Postby Nicholas10128 » 06 Jun 2012, 08:15

Additionally, I run my client on unity player iOS version.
It's not an Objective-C app.
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: How to process a wifi closed exception?

Postby A51Integrated » 06 Jun 2012, 15:11

You'll probably want to ask the question then in the Unity /.NET forum.
A51 Integrated

http://a51integrated.com / +1 416-703-2300

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 15 guests