Operating System - HP-UX
1832857 Members
3543 Online
110048 Solutions
New Discussion

Socket Programming for file transfer

 
Vasudevan MV
Frequent Advisor

Socket Programming for file transfer

Hi,

I have to write a socket program in c/c++ for copying a file from one box to another remote box.

Is it safe method to copy a file?
Can any one show me the sample programs for this?.

Thanks
Vasu
3 REPLIES 3
Steve Steel
Honored Contributor

Re: Socket Programming for file transfer

Hi


The method is certainly valid.

Goto www.software.hp.com

select public domain software


There you will find a large list of programs
with sources to do all sorts of things.

example

rsync-2.5.4
A replacement for rcp that has many more features. Rsync uses the rsync algorithm which provides a very fast method for bringing remote files into sync. It does this by sending just the differences in the files across the link, without requiring that both sets of files are present at one of the ends of the link beforehand. At first glance this may seem impossible because the calculation of diffs between two files normally requires local access to both files.

Author: Andrew Tridgell, Paul Mackerras
Home: http://rsync.samba.org/
Installation Tree: /opt/rsync
Other Versions: 2.5.5


README file

Man Page

Packages Available: (help!)
HP-UX 10.20 PA-RISC Binary Depot (gzipped) [HTTP] [FTP]
(Size: 129 K, Archived: 18 Mar 2002, View contents)

HP-UX 11.00 PA-RISC Binary Depot (gzipped) [HTTP] [FTP]
(Size: 129 K, Archived: 18 Mar 2002, View contents)

HP-UX Source Code Tar Image (gzipped) [HTTP] [FTP]
(Size: 432 K, Archived: 18 Mar 2002, View contents)


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
harry d brown jr
Honored Contributor

Re: Socket Programming for file transfer

Is there a reason that you have such a POOR record of assigning points?

This member has assigned points to 49 of 93 responses to his/her questions.

http://forums.itrc.hp.com/cm/TopSolutions/1,,CA697517!1!questions,00.html

live free or die
harry
Live Free or Die
Vasudevan MV
Frequent Advisor

Re: Socket Programming for file transfer

Harry,

The reason is Steve's answer is not fully satisfied, still I am waiting for some more better responses. Sorry, sometimes I forgot to assign points.

Thanks
Vasu