def dataReceived(self, data): packets = data_util.read_data(data) for packet in packets: txn = packet_reader.read_txn(packet) command = packet_reader.read_cmd(packet) packet_id = packet_reader.read_pid(packet) self.log.debug(f"[{self.name}] command={command}") if command == "CONN": conn.handle(self, data=packet) elif command == "USER": user.handle(self, data=packet) elif command == "CGAM": CGAM.handle(self, data=packet) elif command == "UBRA": UBRA.handle(self, data=packet) elif command == "UGAM": UGAM.handle(self, data=packet) else: self.log.warning( f"[{self.name}] Unknown command+txn received, how do I handle this?! command={command},txn={txn}" )
def dataReceived(self, data): packets = data_util.read_data(data) for packet in packets: txn = packet_reader.read_txn(packet) command = packet_reader.read_cmd(packet) packet_id = packet_reader.read_pid(packet) self.log.debug(f"[{self.name}] command={command},txn={txn}") if command == "fsys": fsys.handle(self, txn=txn) elif command == "acct": acct.handle(self, txn=txn) elif command == "rank": rank.handle(self, txn=txn, data=packet) elif command == "pnow": pnow.handle(self, txn=txn, data=packet) elif len(command.split()) > 0: rank.handle(self, txn=txn, data=packet) else: self.log.warning( f"[{self.name}] Unknown command+txn received, how do I handle this?! command={command},txn={txn}" )
def dataReceived(self, data): packets = data_util.read_data(data) for packet in packets: txn = packet_reader.read_txn(packet) command = packet_reader.read_cmd(packet) packet_id = packet_reader.read_pid(packet) self.log.debug(f"[{self.name}] command={command}")
def dataReceived(self, data): packets = data_util.read_data(data) for packet in packets: txn = packet_reader.read_txn(packet) command = packet_reader.read_cmd(packet) packet_id = packet_reader.read_pid(packet) if txn != "MemCheck": self.log.debug(f"[{self.name}] command={command},txn={txn}") if command == "fsys": fsys.handle(self, txn=txn) elif command == "acct": acct.handle(self, txn=txn) else: self.log.warning( f"[{self.name}] Unknown command+txn received, how do I handle this?! command={command},txn={txn}" )