diff -r 8f9fe41efa81 -r dfa28b22a36c gmyth-stream/server/tests/client.py --- a/gmyth-stream/server/tests/client.py Wed Apr 04 16:47:00 2007 +0100 +++ b/gmyth-stream/server/tests/client.py Thu Apr 12 13:22:53 2007 +0100 @@ -6,10 +6,10 @@ if len(sys.argv) < 2: HOST = 'localhost' - PORT = 5000 + PORT = 50000 elif len(sys.argv) == 2: HOST = sys.argv[1] - PORT = 5000 + PORT = 50000 else: HOST = sys.argv[1] PORT = int(sys.argv[2]) @@ -25,25 +25,25 @@ mplayer = os.popen("which mplayer").read().strip() -mplayer += " - 1> /dev/null" +mplayer += " -idx - -vo x11 1> /dev/null" pin, pout = os.popen2(mplayer) -#teste = open("/tmp/teste2", "w") +#teste = open("teste.avi", "w") -data = socket.recv(1024) +data = socket.recv(4096) i = 0 while (data != ""): pin.write(data) #teste.write(data) - data = socket.recv(1024) - if (i == 500): - socket.send("OK") + data = socket.recv(4096) + #if (i == 500): + # socket.send("OK") i += 1 pin.close() socket.close() - +#teste.close() # from select import select # r, w, x = select([pout], []. [], 0)