Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

FTP Client implementation

Posted on 2003-11-19
5
Medium Priority
?
433 Views
Last Modified: 2010-04-01
Hi all,
Can any one can help me in getting FTP client implemenation in c++. I want this code for downloading file via ftp protocol.


thanks in advance
amar
0
Comment
Question by:amarzee
  • 2
  • 2
5 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 9777723
Check out MFC sample FTPTREE.
0
 
LVL 11

Expert Comment

by:KurtVon
ID: 9779666
If you need to avoid MFC or windows-specific code, there is the BSD licensed c-only version here: http://www.freshports.org/ftp/ftp-tls/  and, for completeness, here is the code for a simple ftp server: http://packages.qa.debian.org/b/bsd-ftpd.html

Excellent tools for seeing how the transfers are done at the lowest levels.

Hope this helps.
0
 

Author Comment

by:amarzee
ID: 9785837
I am looking for c++ implementation which should work on linux/unix environments.

0
 

Author Comment

by:amarzee
ID: 9786885
I am looking for c++ implementation compatible in linux/unix platforms
0
 
LVL 11

Accepted Solution

by:
KurtVon earned 150 total points
ID: 9787504
Well, the C version works in C++, for obvious reasons.  It wouldn't be too hard to write a wrapper, I think.  If non-BSD code is okay there is sFTP http://www.geocities.com/SiliconValley/Peaks/5799/sftp.README.html under the GPL.  Keep in mind that you will have to open source any program that uses it.

Also, this is a standalone client.  The objects for FTP transfers exist, but they are designed to work with the interface, so there will still probably be a little work to integrate it with your program.  I don't know of any C++ library for FTP.

Hope this helps.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question