def dispatcher(self, packet):
        if packet is None:
            return
        elif packet.type == protocol.INFO:
            logger.log(logging.DEBUG, "Dispatching INFO packet")
            self.infoQueue.put(packet)
        elif packet.type == protocol.URL:
            logger.log(logging.DEBUG, "Dispatching url packet : " + str(packet.payload.urlList[0]))
            for site in packet.payload.urlList:
                self.urlToVisit.put(site)
        else:
            logger.log(logging.CRITICAL, "Unrecognized packet type : " + str(packet.type) + ". This packet was dropped")
            return

        logger.log(logging.DEBUG, "Dispatched packet of type: " + str(packet.type))
Dispatches packets to the right packet queue
dataset/ETHPy150Open Diastro/Zeek/src/client.py/WorkingNode.dispatcher