add getAnID() function

This commit is contained in:
Yann Leboulanger 2005-09-10 09:24:39 +00:00
parent f7fe1fbbb0
commit ff1edfffff
1 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,12 @@ class Dispatcher(PlugIn):
self.RegisterEventHandler,self.UnregisterCycleHandler,self.RegisterCycleHandler,\
self.RegisterHandlerOnce,self.UnregisterHandler,self.RegisterProtocol,\
self.WaitForResponse,self.SendAndWaitForResponse,self.send,self.disconnect,\
self.SendAndCallForResponse, ]
self.SendAndCallForResponse, self.getAnID, ]
def getAnID(self):
global ID
ID+=1
return ID
def dumpHandlers(self):
""" Return set of user-registered callbacks in it's internal format.