LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-08-2010, 02:26 AM   #1
renuaseri
Member
 
Registered: Mar 2009
Posts: 39

Rep: Reputation: 15
file transfer program in c using FTP client and FTP server


hi all,

i am new in tcp/ip.
i want to write a program using c for file transfer where FTP client and FTP server will be used.
and also this program should work for ipv4 as well as ipv6.and muiltple client can be connect simultaneously.

i dont know how to start program. should i use shell script or socket programming for file transfer?

can we use FTP client and FTP server in socket programming?

so please help me in how to start.



plz give me some hint to start program.
 
Old 06-08-2010, 02:46 AM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Quote:
i am new in tcp/ip.
i want to write a program using c for file transfer where FTP client and FTP server will be used.
and also this program should work for ipv4 as well as ipv6.and muiltple client can be connect simultaneously.
What you're asking doesn't make sense. Explain the problem and the end goal you're trying to achieve. Are you trying to code up an application that hosts an FTP server on the machine; or are you coding up an application that merely FTP's stuff as a client?

Quote:
i dont know how to start program. should i use shell script or socket programming for file transfer?
Well again it depends on what you're trying to achieve. What is the real world problem you're trying to solve; and how does FTP come into it?

There are many API's for FTP/SFTP in C, C#, Java, etcetera. Also you can use bash, perl, python, php etcetera to script FTP communications.

Quote:
can we use FTP client and FTP server in socket programming?
Please explain? Unless you're planning on writing your own custom FTP server/client why would you want to do "socket" programming? In terms of binding to an FTP server, your API would do this for you.

Lastly consider that the machine on which you're coding will need to have your FTP server/client application installed as well (be it vsftp/proftp etcetera).
 
Old 01-29-2011, 05:49 AM   #3
raghureddii
LQ Newbie
 
Registered: Aug 2010
Posts: 8

Rep: Reputation: 0
Question FTP client Server Implementaion in C

Hi,

1) I was implemented FTP Client, Server in Socket Programming C,Linux

2) Client can read data from server 100 byes max (i did using arrays)


i want to enhance up to 1GB ??

can any one suggest me how to enhance ???










Quote:
Originally Posted by alli_yas View Post
What you're asking doesn't make sense. Explain the problem and the end goal you're trying to achieve. Are you trying to code up an application that hosts an FTP server on the machine; or are you coding up an application that merely FTP's stuff as a client?



Well again it depends on what you're trying to achieve. What is the real world problem you're trying to solve; and how does FTP come into it?

There are many API's for FTP/SFTP in C, C#, Java, etcetera. Also you can use bash, perl, python, php etcetera to script FTP communications.



Please explain? Unless you're planning on writing your own custom FTP server/client why would you want to do "socket" programming? In terms of binding to an FTP server, your API would do this for you.

Lastly consider that the machine on which you're coding will need to have your FTP server/client application installed as well (be it vsftp/proftp etcetera).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
file transfer from one ftp server to another ftp server divyashree Linux - Newbie 7 02-24-2010 02:48 AM
ftp : need to transfer 2.5terrabyte(huge number of files), good ftp program ? ghoulsblade Linux - Software 8 10-29-2009 03:59 AM
In plesk , I wish to have a backup cron job, ftp back up file to another ftp server? muskiediver Linux - General 6 07-16-2009 03:13 AM
Good FTP transfer program? polarbear20000 Linux - Software 7 05-31-2007 02:12 PM
[most secure, open source, client/server file transfer program] Synesthesia Linux - Software 5 11-28-2005 08:20 PM


All times are GMT -5. The time now is 10:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration