handleMessageType

This commit is contained in:
David Rose 2009-03-19 01:02:41 +00:00
parent c195f770ea
commit 5b59964012
2 changed files with 7 additions and 1 deletions

View File

@ -155,6 +155,9 @@ class ClientRepository(ClientRepositoryBase):
# may forget to send heartbeats. Keep them coming!
self.considerHeartbeat()
def handleMessageType(self, msgType, di):
self.notify.error("unrecognized message")
def handleGenerateWithRequired(self, di):
# Get the class Id
classId = di.getUint16()

View File

@ -225,7 +225,10 @@ class ServerRepository:
elif type == CLIENT_OBJECT_DISABLE:
self.handleClientDisable(datagram, dgi.getUint32())
else:
self.notify.error("unrecognized message")
self.handleMessageType(type, dgi)
def handleMessageType(self, msgType, di):
self.notify.error("unrecognized message")
# client wants to create an object, so we store appropriate data,
# and then pass message along to corresponding zones