Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

RE: Network File transfer

by IndyZ (Friar)
on Feb 04, 2000 at 03:39 UTC ( [id://2824]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://2824]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-23 10:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found