[Tutor] transferring files over a network
Stephen Aichele
aichele@mindspring.com
Wed, 25 Apr 2001 02:40:51 -0400 (EDT)
I'm looking for suggestions for implementing P2P filesharing over a network using Python.
with respect to the connection itself, I think I'm ok. However, I'm thinking that there must be a better way to handle the data transfer than what I'm currently doing:
open the file on machine #1, read it into a variable, and send the data (as a python variable) to machine #2. machine #2 then catches it and writes it to a file.
this is all well and good for simple files, but for longer files it seems like too much data to have read into a variable and sent all at once. seems there should be a way to copy the file directly from machine #1 to machine #2.
If anyone has a minute to spare with a suggestion or two, I'd really appreciate it...
thanks!
Stephen