def main(): #print("Initializing network knowledge to make life easier.") import communication local_ip = communication.find_local_ip() local_mac = communication.find_mac(local_ip) local_name = communication.host_name() active_device(local_mac,local_ip,local_name) #fixed_ips = input('Do you have fixed IPs assigned to certain machines? (Y/N) ') local_ip_peers = communication.find_peers(local_ip) record_peers(local_ip_peers)
def main(): #print("Running Transmission Manager.") import communication t_ip_port,local_peers = communication.find_transmission() if len(local_peers) < 1: local_ip = communication.find_local_ip() local_peers = communication.find_peers(local_ip) # record what we have found - this part should actually be executed every 10 min or something like that # over time it will become interesting to see which IPs are frequently offline or online # also record the local ip ! local_peers.append(local_ip) import knowledge knowledge.record_peers(local_peers) import decider decider.is_network_busy()