def doPDURequest(self, reqPDU, handler): twistedSMPPClientProtocol.doPDURequest(self, reqPDU, handler) # Stats if reqPDU.commandId == CommandId.enquire_link: self.factory.stats.set('last_received_elink_at', datetime.now()) elif reqPDU.commandId == CommandId.deliver_sm: self.factory.stats.inc('deliver_sm_count') elif reqPDU.commandId == CommandId.data_sm: self.factory.stats.inc('data_sm_count')
def doPDURequest(self, reqPDU, handler): twistedSMPPClientProtocol.doPDURequest(self, reqPDU, handler) # Stats if reqPDU.id == CommandId.enquire_link: self.factory.stats.set('last_received_elink_at', datetime.now())