From: <Blu...@us...> - 2009-12-18 19:33:14
|
Revision: 326 http://virtplayground.svn.sourceforge.net/virtplayground/?rev=326&view=rev Author: BlueWolf_ Date: 2009-12-18 19:33:06 +0000 (Fri, 18 Dec 2009) Log Message: ----------- Changing the documentation regarding server disconnects Modified Paths: -------------- trunk/client/core/callback.py trunk/client/core/parser.py Modified: trunk/client/core/callback.py =================================================================== --- trunk/client/core/callback.py 2009-12-18 19:32:18 UTC (rev 325) +++ trunk/client/core/callback.py 2009-12-18 19:33:06 UTC (rev 326) @@ -66,11 +66,13 @@ * "crash" - A crash happened on the server. Unless you sent malicious data or you're not admin of the server, there's nothing - you can do about it. + you can do about it + * "gone offline"- The server has just gone offline Return True if you want it to reconnect. To avoid unexpected - behaviour, you should *only* do this when reason is "closed"! + behaviour, you should *only* do this when reason is "closed" or + "gone offline"! If you provided the login in client.connect, it logs in automatically. Modified: trunk/client/core/parser.py =================================================================== --- trunk/client/core/parser.py 2009-12-18 19:32:18 UTC (rev 325) +++ trunk/client/core/parser.py 2009-12-18 19:33:06 UTC (rev 326) @@ -36,10 +36,12 @@ def disconnect(self, msg): """ Called just before the server closes our connection. - * reason - Why the server disconnected us - "full" - Because the server is full - "duplicate" - Because another client has logged in - on the same account + * reason - Why the server disconnected us + "full" - Because the server is full + "duplicate" - Because another client has logged in + on the same account + "crash" - The server-parser has made a crash + "gone offline" - Server has just shutdown """ # reason - Why it's going to disconnect us This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |