470,862 Members | 1,834 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,862 developers. It's quick & easy.

FTP client C source code

EBG
Probably a stupid question but does anyone know of a *free* FTP client
library implemented in C, complete with source code? I've looked on the
web and as expected are 1000's of offerings, however couldn't find
anything with sources in C and is free. Target platform is Windows (CE
4.2) however will be ported to other proprietary platforms at later
stage.

Cheers,
EBG

Dec 15 '06 #1
6 30297
EBG <em**********@yahoo.co.ukwrote:
Probably a stupid question but does anyone know of a *free* FTP client
library implemented in C
(No, because standard C provides no facilities with which to write an
FTP client. Have you looked at sourceforge?)

(For the pedants, I suppose you could write an FTP client in standard
C, but I really don't think system("wget http://my.host/my.file")
counts.)

Your post is off-topic for comp.lang.c. Please visit

http://www.ungerhu.com/jxh/clc.welcome.txt
http://c-faq.com
http://benpfaff.org/writings/clc/off-topic.html

for posting guidelines and frequently asked questions. Thank you.

--
C. Benson Manica | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com | don't, I need to know. Flames welcome.
Dec 15 '06 #2
Christopher Benson-Manica said:
EBG <em**********@yahoo.co.ukwrote:
>Probably a stupid question but does anyone know of a *free* FTP client
library implemented in C

(No, because standard C provides no facilities with which to write an
FTP client. Have you looked at sourceforge?)

(For the pedants, I suppose you could write an FTP client in standard
C, but I really don't think system("wget http://my.host/my.file")
counts.)
You could write about 99.5% of it in standard C.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Dec 15 '06 #3
2006-12-15 <f7*********************@bt.com>,
Richard Heathfield wrote:
Christopher Benson-Manica said:
>EBG <em**********@yahoo.co.ukwrote:
>>Probably a stupid question but does anyone know of a *free* FTP client
library implemented in C

(No, because standard C provides no facilities with which to write an
FTP client. Have you looked at sourceforge?)

(For the pedants, I suppose you could write an FTP client in standard
C, but I really don't think system("wget http://my.host/my.file")
counts.)

You could write about 99.5% of it in standard C.
99.9 - you'd really only need one non-standard-implementable function
for passive ftp.

FILE *tcpopen(const char *host, unsigned short port, const char *mode);
Dec 15 '06 #4
On 14 Dec 2006 18:07:32 -0800, "EBG" wrote:
>Probably a stupid question but does anyone know of a *free* FTP client
library implemented in C, complete with source code? I've looked on the
web and as expected are 1000's of offerings, however couldn't find
anything with sources in C and is free.
Have you looked here http://www.koders.com/ or here
http://www.krugle.com/ ?
Dec 15 '06 #5
"EBG" <em**********@yahoo.co.uk>
>...t does anyone know of a *free* FTP client
library implemented in C, complete with source code? I've looked on the
web and as expected are 1000's of offerings, however couldn't find
anything with sources in C and is free. Target platform is Windows (CE
4.2) however will be ported to other proprietary platforms at later
stage.
ftplib: http://nbpfaus.net/~pfau/ftplib/
Dec 18 '06 #6
On Fri, 15 Dec 2006 15:08:08 +0000 (UTC), Christopher Benson-Manica
<at***@otaku.freeshell.orgwrote:
EBG <em**********@yahoo.co.ukwrote:
Probably a stupid question but does anyone know of a *free* FTP client
library implemented in C

(No, because standard C provides no facilities with which to write an
FTP client. Have you looked at sourceforge?)
Well, there's no _guaranteed_ way to get at TCP/IP comms, but they
could be accessible through stdio. In fact, they often are for
_servers_ run from inetd or similar. It would be rather constraining
for a library to rely on this however.

It is certainly possible to build commands and parse responses, and do
a reasonable command-line-type UI, in standard C. For a client you
don't strictly need nonblocking or async I/O or multithreading or even
timeouts, none of which are standard, although you can do a rather
better job if you have (some of?) them.
(For the pedants, I suppose you could write an FTP client in standard
C, but I really don't think system("wget http://my.host/my.file")
counts.)
I don't think it works either, unless you use a FTP-scheme URL.
Your post is off-topic for comp.lang.c. Please visit

http://www.ungerhu.com/jxh/clc.welcome.txt
http://c-faq.com
http://benpfaff.org/writings/clc/off-topic.html

for posting guidelines and frequently asked questions. Thank you.

- David.Thompson1 at worldnet.att.net
Jan 3 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Les Juby | last post: by
12 posts views Thread by dam | last post: by
6 posts views Thread by VB Programmer | last post: by
2 posts views Thread by Booker Washington | last post: by
4 posts views Thread by melanie_23 | last post: by
3 posts views Thread by teddysnips | last post: by
1 post views Thread by Croteam | last post: by
1 post views Thread by Astan Chee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.