Server stop event

Post here all your questions related with the SmartFoxServer iPhone API

Moderators: Lapo, Bax

corwin
Posts: 77
Joined: 17 Jul 2009, 08:19

Server stop event

Postby corwin » 28 Apr 2010, 14:29

Hi, how is possible to handle server halts and reboots?
Nothing comes onConnectionLost, there is just EventErrorOcurred debug message...
User avatar
cemuzunlar
Posts: 47
Joined: 26 Dec 2008, 00:45
Contact:

Postby cemuzunlar » 12 May 2010, 11:49

If the server halts, you can't get a notification from client until you got disconnected from the server. (It is also possible that you may never be disconnected from the server if the server halted really bad until TCP timeout occurs.)

If the server restarts (hard restart), you got disconnected so you should be getting a "Connection Lost" event.
Cem Uzunlar
Infosfer Game and Visualization Technologies
http://www.infosfer.com
contact@infosfer.com

Return to “iPhone Objective-C API”

Who is online

Users browsing this forum: No registered users and 12 guests