def handle_read(self, data, address, laddress, rtime):
        if len(data) > 0 and self.uopts.data_callback != None:
            lserver = self.lservers.get(laddress, None)
            if lserver == None:
                lserver = _XMPP_server(laddress, self)
                self.lservers[laddress] = lserver
            try:
                self.uopts.data_callback(data, address, lserver, rtime)
            except:
                print datetime.datetime.now(), 'XMPP_server: unhandled exception when receiving incoming data'
                print '-' * 70
                traceback.print_exc(file = sys.stdout)
                print '-' * 70
                sys.stdout.flush()
dataset/ETHPy150Open sippy/b2bua/sippy/XMPP_server.py/XMPP_server.handle_read/original