Server stop event

Post here all your questions related with the SmartFoxServer iPhone API

Moderators: Lapo, Bax

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

Server stop event

Post by corwin »

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

Post by cemuzunlar »

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
Post Reply