Пример #1
0
        serve=Node(line.rstrip())
        serve.incominglist=[]
        con1080.append(copy.deepcopy(serve))
        con720.append(copy.deepcopy(serve))
        con480.append(copy.deepcopy(serve))
        con360.append(copy.deepcopy(serve))
        dead.append(copy.deepcopy(serve))
        line=f.readline()

	session=True
        while line!="":
                nodeList.append(Node(line.rstrip()))
                line=f.readline()
	for item in nodeList:
		debug=open("debug",'a')
		debug.write(item.IP+ " \n")
		debug.close()
	t=Timer(3605, ending)
	t.dameon = True
	t.start()
	for item in nodeList:
        	threads.insert(0,Thread(target=item.getBandwidth, args =()))
		threads[0].dameon=True
		threads[0].start()
	for item in nodeList:
		threads.insert(0, Thread(target=item.getPackets, args=()))
		threads[0].dameon=True
		threads[0].start()
        print "done"
        print "nope"