report server heartbeats

This commit is contained in:
David Rose 2003-05-27 21:14:48 +00:00
parent ee097fe7a8
commit c43178944d
2 changed files with 9 additions and 0 deletions

View File

@ -537,11 +537,18 @@ class ClientRepository(DirectObject.DirectObject):
self.bootedText = None
ClientRepository.notify.warning(
"Server is booting us out with no explanation.")
def handleServerHeartbeat(self, di):
# Got a heartbeat message from the server.
ClientRepository.notify.info("Server heartbeat.")
def handleUnexpectedMsgType(self, msgType, di):
if msgType == CLIENT_GO_GET_LOST:
self.handleGoGetLost(di)
elif msgType == CLIENT_HEARTBEAT:
self.handleServerHeartbeat(di)
else:
currentLoginState = self.loginFSM.getCurrentState()
if currentLoginState:

View File

@ -12,6 +12,8 @@ CLIENT_SET_SHARD = 31
CLIENT_CREATE_OBJECT_REQUIRED = 34
CLIENT_CREATE_OBJECT_REQUIRED_OTHER = 35
CLIENT_HEARTBEAT = 52
# These messages are ignored when the client is headed to the quiet zone
QUIET_ZONE_IGNORED_LIST = [