[svn r700] Reduced the quantity of max retries number on file_read.
10 elif len(sys.argv) == 2:
15 PORT = int(sys.argv[2])
17 socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
21 socket.connect( (HOST,PORT) )
23 print "\n--> Could not connect to ('%s':'%d')\n" % (HOST,PORT)
27 mplayer = os.popen("which mplayer").read().strip()
28 mplayer += " -idx - -vo x11 1> /dev/null"
29 pin, pout = os.popen2(mplayer)
31 #teste = open("teste.avi", "w")
33 data = socket.recv(4096)
39 data = socket.recv(4096)
48 # from select import select
49 # r, w, x = select([pout], []. [], 0)