computer3.debugConfigureNetworkstackDelay(sendDelay=0.2, layerDelay=0.2) else: computer3 = Computer(ownIdentifier="C", masterHost=masterHostIp, baseport=10000, networkStackNumber=1) #computer3.debugConfigureNetworkstackDelay(sendDelay=3,layerDelay=0) # Waiting three seconds to allow for the connections on the PHY Layer time.sleep(3) # Start sending some messages from computer 'A' to computer 'B' __debugOut.debugOutSource("Main", __debugOut.srcComputer, __debugOut.INFO, "Starting some message from A to B") computer1.appMessageSend(destinationIdentifier="B", numberOfMessages=5) # Start sending some messages from computer 'B' to computer 'A' __debugOut.debugOutSource("Main", __debugOut.srcComputer, __debugOut.INFO, "Starting some message from B to A") computer2.appMessageSend(destinationIdentifier="A", numberOfMessages=5) time.sleep(2) # Computer 1 initiates the TOKEN manually in this protocol computer1.initiateToken() print("Token sent") # We may want to have this third computer leave the network after some time if False: time.sleep(10) computer3.stopComputer()