zentara has asked for the wisdom of the Perl Monks concerning the following question:
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: File Transfer via Sockets
by gmpassos (Priest) on Sep 15, 2002 at 00:04 UTC | |
I use 2 scrips in the port 6123 (you can change), one client and one server. To use just run the server on the machine that will receive the files, and in the machine that will send, type this: CLIENT
SERVER
Graciliano M. P. | [reply] [d/l] [select] |
by Anonymous Monk on May 25, 2017 at 22:00 UTC | |
Hi just wanted to check how are you running server side script, is it running as a cron on the destination server? or is it supposed to be manually run on destination server once we are done with running client script of sender server? | [reply] |
Re: File Transfer via Sockets
by Zaxo (Archbishop) on Sep 14, 2002 at 16:02 UTC | |
LWP has lots of high level protocols for that. No need to get your hands dirty on the low level socket stuff. If this is a learning exercise, look at Socket and IO::Socket. After Compline, | [reply] |
Re: File Transfer via Sockets
by jryan (Vicar) on Sep 14, 2002 at 19:56 UTC | |
You should also look at Net::FTP. If you really need to do it with straight sockets, stick with IO::Socket. It's much easier to use than Socket, and is also part of the core. To "transfer" a file via sockets, it would involve a process like this: Actual implementation details may vary, but you'd need to do something like this. I'd be much easier to use an existing protocol like FTP and an aforementioned module to compliment it.
| [reply] [d/l] |
Re: File Transfer via Sockets
by Ryszard (Priest) on Sep 15, 2002 at 08:30 UTC | |
And now for the HTML:
Update: Fixed some missing curly braces... | [reply] [d/l] [select] |
Re: File Transfer via Sockets
by DigitalKitty (Parson) on Sep 15, 2002 at 04:07 UTC | |
I just saw this in the Q & A section: How do I send a file through a Socket Connection ? Hope this helps, -Katie. | [reply] |
Re: File Transfer via Sockets
by zentara (Archbishop) on Sep 15, 2002 at 15:07 UTC | |
| [reply] |