Solved

FTP Client implementation

Posted on 2003-11-19
5
412 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 50 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now