# STATISTICS match = re.match(r"mpassed$", do) if match: print('Messages passed by '+thisPeer.name+': '+str(thisPeer.getMessagesPassed())) continue match = re.match(r"mpassed-all", do) if match: print('Messages passed by all peers in network: '+str(thisPeer.getAllMessagesPassed())) continue match = re.match(r"^mreset$", do) if match: thisPeer.resetMessagesCounter() continue match = re.match(r"^mreset-all$", do) if match: thisPeer.resetAllMessagesCounter() continue match = re.match(r"^fullreset$", do) if match: thisPeer.fullReset() continue match = re.match(r"^fullreset-all$", do) if match: thisPeer.fullResetAll()