Re: File transfer on network

2010-07-17 Thread Lawrence D'Oliveiro
In message , MRAB wrote: > You could either open and close a connection for each image, or have the > client tell the server how many bytes it's going to send, followed by > the bytes (my preference would be to send the size as a string ending > with, say, a newline). I have used variations on th

Re: File transfer on network

2010-07-16 Thread MRAB
mukesh tiwari wrote: On Jul 16, 4:08 am, MRAB wrote: mukesh tiwari wrote: Hello all Currently i am trying to develop a client and server in python. Client takes screenshot in every 20 seconds and send it to server. Server store the received file in folder. Here is code for Client import sys im

Re: File transfer on network

2010-07-16 Thread mukesh tiwari
On Jul 16, 4:08 am, MRAB wrote: > mukesh tiwari wrote: > > Hello all > > Currently i am trying to develop a client and server in python. Client > > takes screenshot in every 20 seconds and send it to server. Server > > store the received file in folder. Here is code for Client > > > import sys > >

Re: File transfer on network

2010-07-15 Thread MRAB
mukesh tiwari wrote: Hello all Currently i am trying to develop a client and server in python. Client takes screenshot in every 20 seconds and send it to server. Server store the received file in folder. Here is code for Client import sys import socket import gtk.gdk import time if __name__ == "

Re: File transfer on network

2010-07-15 Thread mukesh tiwari
Kindly see this post as above post contains some garbage code in end. Sorry for that. Hello all Currently i am trying to develop a client and server in python. Client takes screenshot in every 20 seconds and send it to server. Server store the received file in folder. Here is code for Client impor

File transfer on network

2010-07-15 Thread mukesh tiwari
Hello all Currently i am trying to develop a client and server in python. Client takes screenshot in every 20 seconds and send it to server. Server store the received file in folder. Here is code for Client import sys import socket import gtk.gdk import time if __name__ == "__main__": s=so