Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

FTP Client implementation

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maze travler 6 62
TCP/IP Socket - connection close results in data lost 14 140
How to copy an image file into clipboard C/C++? 1 199
Path to  STL Map header file 1 69
When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

860 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