Exemplo n.º 1
0
		thisPeer.resetAllMessagesCounter()
		continue

	match = re.match(r"nadded$", do)
	if match:
		print('# of neighbours added by '+thisPeer.name+': '+str(thisPeer.getAddNeighbourCounter()))
		continue

	match = re.match(r"nadded-all", do)
	if match:
		print('# of neighbours added by all peers in network: '+str(thisPeer.getAllAddNeighbourCounter()))
		continue

	match = re.match(r"^naddedreset$", do)
	if match:
		thisPeer.resetAddNeighbourCounter()
		continue

	match = re.match(r"^naddedreset-all$", do)
	if match:
		thisPeer.resetAllAddNeighbourCounter()
		continue


	match = re.match(r"dhcard$", do)
	if match:
		print('Average Diffie-Hellman connection pool cardinality for '+thisPeer.name+': '+str(thisPeer.getAvgDHCardinality()))
		continue

	match = re.match(r"dhcard-all$", do)
	if match: