File transfer in C


 
Thread Tools Search this Thread
Top Forums Programming File transfer in C
# 1  
Old 08-03-2011
Question File transfer in C

HI
Can anyone provide me with codes for file transfer server to client or vice versa?
Also please explain how to compile those programs in ubuntu terminal as i am totally new to socket programming.

Thanks

Last edited by jim mcnamara; 08-03-2011 at 05:56 PM.. Reason: duplicate post
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

File transfer

When using FTP to transfer a file from IBM iSeries family of servers client to a non IBM Iseries family server, files might have characters appear in the wrong format Eg | in Iseries and while transferring fro Iseries system to Linux , but instead of | it is showing as ?. Please advise (3 Replies)
Discussion started by: sudhainit
3 Replies

2. Shell Programming and Scripting

File transfer script

Hi, I need a shell script to transfer a file from one server(unix box) to another server(windows box). I have the details of the source and destination Ip's. source path : /home/UNIX/server filename:abc.txt Destination folder: D:/UNIX/test I am using AIX server. Type of shell :... (1 Reply)
Discussion started by: NareshN
1 Replies

3. UNIX for Advanced & Expert Users

SCP File Transfer

On unix AIX server, when I am trying to transfer file from one directory to another directory on the same server through a program(where i call the script) it gives error "Lost Connection". (5 Replies)
Discussion started by: Pash
5 Replies

4. Shell Programming and Scripting

Avoiding file overwrite during file transfer using scp

Hi, I have written a small script to transfer a file from one unix server to other using scp command which is working fine. As I know with scp, if any file with the same name is already present on destination server, it would get overwritten without any notification to user. Could anyone help me... (14 Replies)
Discussion started by: dsa
14 Replies

5. UNIX for Advanced & Expert Users

SCP File Transfer

I have 3 AIX server namely - Server 1 , Server 2 and Server 3. And have done SCP setup between Server 1 and Server 2 so that i dont have to give password when i transfer file from Server 1 to Server 2 by setting public key between the server. Q1. If the unix password of the target server... (3 Replies)
Discussion started by: Pash
3 Replies

6. Shell Programming and Scripting

How to transfer file from one PC to another using PERL?

Hi All I have two PC connected with each other via LAN cable. In one of the PC the Perl is installed. What I want to do is transfer the data from one PC to another via Perl. Is it possible to do this. ---------- Post updated at 11:31 PM ---------- Previous update was at 07:01 AM ----------... (10 Replies)
Discussion started by: parthmittal2007
10 Replies

7. Shell Programming and Scripting

File transfer

Hi All, it might not be an sound question, i have two server like A and B.. i want to transfer file from B to A ..here i have some questions.. 1) do we need to create private and public key to connect..and transferring files...from B to A..? 2) i tried with scp options like... (2 Replies)
Discussion started by: Shahul
2 Replies

8. UNIX for Dummies Questions & Answers

Transfer the file

Dear all, Can anybody let me know how to automate a file transfer process to a remote m/c thru SFTP , automate means it will not prmpt for password. how i am going to achive this....and what all methods are available or tools are available ???? (2 Replies)
Discussion started by: manas_ranjan
2 Replies

9. Shell Programming and Scripting

file transfer

hi all how do i copy a file from one server to another thanks bkan77 (4 Replies)
Discussion started by: bkan77
4 Replies

10. Shell Programming and Scripting

file transfer Methods

I would like to write shell script to transfer some ASCII files from HPUX server to Linux server or vice-versa. What options I have for file transfer Methods. 1) FTP 2) rcp 3) HTTP 4)Whatelse? (2 Replies)
Discussion started by: Teh Tiack Ein
2 Replies
Login or Register to Ask a Question
nfs4_max_transfer_size(5)					File Formats Manual					 nfs4_max_transfer_size(5)

NAME
nfs4_max_transfer_size - control the size of the data portion of a NFS version 4 read, write, readdir, or readdirplus request VALUES
Failsafe Default Allowed values Recommended values A warning will be issued at runtime if the tunable is set to a value greater than 1048576 since this is outside the tested limits. This is not a serious warning but just an information message for the administrator. DESCRIPTION
controls the maximum size of the data portion of a NFS version 4 read, write, readdir, or readdirplus request. This parameter controls both the maximum size of a request that the server returns as well as the maximum size of a request that the client generates. Who Is Expected to Change This Tunable? Distributed file system administrators should examine this value if they want to decrease or increase the default size of a NFS packet. Restrictions on Changing The tunable is dynamic; however, the transfer size for a file system is set when the file system is mounted. To affect a particular file system, unmount and mount the file system after changing this parameter. The actual NFS version 4 transfer size is controlled by these tunable parameters: and The actual transfer size will depend on the tunable with the smallest value. For NFS version 4 traffic increase and to the same value to increase the transfer size. To decrease the transfer size, just changing is sufficient. When Should the Value of This Tunable Be Raised? An increase in the transfer size will result in fewer requests to the NFS server at the expense of system resources on both the NFS client and NFS server. What Are the Side Effects of Raising the Value? An increase in system resources on both the NFS client and NFS server. When Should the Value of This Tunable Be Lowered? In the event of NFS communication failures, the value should be changed back to the default value. What Are the Side Effects of Lowering the Value? An increase in NFS version 4 network traffic caused by an increase in the number of I/O requests. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by Sun Microsystems, Inc. SEE ALSO
kctune(1M), sam(1M), gettune(2), settune(2), nfs4_bsize(5), nfs4_max_transfer_size_cots(5), values(5). Tunable Kernel Parameters nfs4_max_transfer_size(5)