in reply to Network File transfer
I don't know of any modules of hand. The easiest (and
least secure) way to do this is have your recieving program
listen on a TCP port. Have your sending program connect,
send the filename to saves as followed by a newline. The
recieving program takes this filename and opens it for
writing. Then, the sending program starts sending data, and
the recieving program writes it to a file. The sender just
drops the connection when the file is completed.
You would probably have to have the reciever check ip
addresses or you could add usernames/passwords in addition
to the filename headers. I will try to post example code
later today.
Remember, this is TOTALLY insecure without passwords, or at
least ip checks.
|