in reply to Transfer file from client server in socket prog
If you want to transfer files over the same connection, you will have to open a file, read blocks from it, send those to the other party.
If you just want to transfer files and the client and server can speak the SSH protocol, then reusing Net::SSH::Any or Net::SSH2 can work well. Note that one side needs to run an SSH server for that.
If you just want to transfer files, consider having the server serve the files over HTTP and just transfer the appropriate URL to the client. The client can then use any of the HTTP modules to download the resource.
|
|---|