Beispiel #1
0
 def handleConnectionWriteEvent(self, event):
     log.debug("Handling Write Event")
     event.getSource().write()
Beispiel #2
0
 def handleConnectionExceptionEvent(self, event):
     log.debug("Handling Connection Exception Event")
     event.getSource().disconnect()
     self.dropConnection(event.getSource())
Beispiel #3
0
 def handleConnectionReadEvent(self, event):
     log.debug("Handling Read Event")
     obj = event.getSource().read()
     if obj != None:
         self.addEvent(obj)