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! # may forget to send heartbeats. Keep them coming!
self.considerHeartbeat() self.considerHeartbeat()
def handleMessageType(self, msgType, di):
self.notify.error("unrecognized message")
def handleGenerateWithRequired(self, di): def handleGenerateWithRequired(self, di):
# Get the class Id # Get the class Id
classId = di.getUint16() classId = di.getUint16()

View File

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