How to process a wifi closed exception?

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

Moderators: Lapo, Bax

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

How to process a wifi closed exception?

Post by Nicholas10128 »

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?
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: How to process a wifi closed exception?

Post by A51Integrated »

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?

Post by Nicholas10128 »

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?

Post by Nicholas10128 »

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

Re: How to process a wifi closed exception?

Post by A51Integrated »

You'll probably want to ask the question then in the Unity /.NET forum.
A51 Integrated
http://a51integrated.com / +1 416-703-2300
Post Reply