def doPDURequest(self, reqPDU, handler): twistedSMPPServerProtocol.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.submit_sm: self.factory.stats.inc('submit_sm_request_count')