473,395 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ftp client in C

I need some help about FTP.

is there any library available to design FTP client functionality in
C ???

i searched in google. Thousands of links suggested me to use cURL..but
its not compartible with Borland c++.

I have already asked it in win32 community. But becoz of medium
activity in that community and this question is a bit relevant to C
language, I decided to ask it here.

Oct 7 '08 #1
8 3766
On 7 Oct 2008 at 18:28, asit wrote:
is there any library available to design FTP client functionality in
C ???

i searched in google. Thousands of links suggested me to use cURL..but
its not compartible with Borland c++.
What makes you think that?

libcurl is a cross-platform C library; just #include its header file,
and if you're writing in C++ then all the functions will be correctly
specified in extern "C" sections so that you can use them with no
problems.

Oct 7 '08 #2
asit <li*****@gmail.comwrites:
I need some help about FTP.

is there any library available to design FTP client functionality in
C ???

i searched in google. Thousands of links suggested me to use cURL..but
its not compartible with Borland c++.

I have already asked it in win32 community. But becoz of medium
activity in that community and this question is a bit relevant to C
language, I decided to ask it here.
Wrong again.

This newsgroup discusses the C programming language, as defined by the
ISO C Standard(s) and by older documents such as K&R (Kernighan and
Ritchie, "The C Programming Language", 1st and 2nd editions).

Standard C has no built-in support for networking, either in the core
language or in the standard library. That means that any networking
support must be provided by additional libraries, provided by a
particular C implementation, by the operating system, or by some third
party.

(A few trolls will insist that these things are appropriate for this
newsgroup. Please ignore them.)

You say you're using Borland C++. I assume you're using it in a mode
in which it acts as a C compiler. (If not, you're programming in C++,
not C, and you're definitely in the wrong newsgroup.)

Why do you assume that cURL is not compatible with Borland C++? Grab
the source distribution and take a look at docs/INSTALL, searching for
"Borland". If you run into problems, consult an appropriate mailing
list at <http://curl.haxx.se/>.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Oct 7 '08 #3
On Oct 7, 11:43 pm, Antoninus Twink <nos...@nospam.invalidwrote:
On 7 Oct 2008 at 18:28, asit wrote:
is there any library available to design FTP client functionality in
C ???
i searched in google. Thousands of links suggested me to use cURL..but
its not compartible with Borland c++.

What makes you think that?

libcurl is a cross-platform C library; just #include its header file,
and if you're writing in C++ then all the functions will be correctly
specified in extern "C" sections so that you can use them with no
problems.
I modified a little header file
like
"curlver.h" to <curl\curl.h>
but it gives a lot of linking error..
Oct 7 '08 #4
On 7 Oct 2008 at 18:58, asit wrote:
I modified a little header file
like
"curlver.h" to <curl\curl.h>
but it gives a lot of linking error..
What do the linking errors say? There will be plenty of people here who
are familiar with Borland products who'll be able to interpret them.

Are you sure you've told your linker to link against libcurl? If you
invoke the linker on the command line, you probably need to pass an
argument like -lcurl. Otherwise, there may be some "linker properties"
or similar menu option where you can list the libraries your program
needs.

Oct 7 '08 #5
On Tue, 07 Oct 2008 11:57:47 -0700, Keith Thompson wrote:
asit <li*****@gmail.comwrites:
>I need some help about FTP.

is there any library available to design FTP client functionality in
C ???

i searched in google. Thousands of links suggested me to use cURL..but
its not compartible with Borland c++.

I have already asked it in win32 community. But becoz of medium
activity in that community and this question is a bit relevant to C
language, I decided to ask it here.

Wrong again.

This newsgroup discusses the C programming language, as defined by the
ISO C Standard(s) and by older documents such as K&R (Kernighan and
Ritchie, "The C Programming Language", 1st and 2nd editions).

Standard C has no built-in support for networking, either in the core
language or in the standard library. That means that any networking
support must be provided by additional libraries, provided by a
particular C implementation, by the operating system, or by some third
party.

(A few trolls will insist that these things are appropriate for this
newsgroup. Please ignore them.)

You say you're using Borland C++. I assume you're using it in a mode
in which it acts as a C compiler. (If not, you're programming in C++,
not C, and you're definitely in the wrong newsgroup.)

Why do you assume that cURL is not compatible with Borland C++? Grab
the source distribution and take a look at docs/INSTALL, searching for
"Borland". If you run into problems, consult an appropriate mailing
list at <http://curl.haxx.se/>.
There's all that, but I would think C is a clumsy tool for something like
this compared to alternatives.

This stuff is *easy* in Perl and ruby.

A background in C helps for Perl, as under the hood is C. Ruby's written
with MVC++ 6.
--
Richard Milhous Nixon

All you need in this life is ignorance and confidence, and then success is
sure.
~~ Mark Twain
Oct 7 '08 #6
asit wrote:
>
I need some help about FTP.

is there any library available to design FTP client functionality
in C ???

i searched in google. Thousands of links suggested me to use cURL.
but its not compartible with Borland c++.

I have already asked it in win32 community. But becoz of medium
activity in that community and this question is a bit relevant to
C language, I decided to ask it here.
No, it is not on topic in c.l.c. Get a copy of the C standard and
read it (C99 below). That is what controls what is topical here.
And stop posting off-topic questions.

Some useful references about C:
<http://www.ungerhu.com/jxh/clc.welcome.txt>
<http://c-faq.com/ (C-faq)
<http://benpfaff.org/writings/clc/off-topic.html>
<http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf(C99)
<http://cbfalconer.home.att.net/download/n869_txt.bz2 (pre-C99)
<http://www.dinkumware.com/c99.aspx (C-library}
<http://gcc.gnu.org/onlinedocs/ (GNU docs)
<http://clc-wiki.net/wiki/C_community:comp.lang.c:Introduction>

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
Oct 8 '08 #7
CBFalconer <cb********@yahoo.comwrites:
asit wrote:
>>
I need some help about FTP.
[...]
No, it is not on topic in c.l.c.
[...]

As I told him more than 5 hours ago.

And it's not a news server latency problem; we both post through
motzarella.org.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Oct 8 '08 #8
On 8 Oct 2008 at 21:35, Keith Thompson wrote:
If you're reading an article posted several hours ago asking for help
with FTP, it's reasonalbe to assume that somebody else has already
posted a followup saying that it's off-topic
In such an event, it's reasonable to assume that there's been a feeding
frenzy where many other people have posted caustic followups making the
false assertion that it's off-topic.

It's also possible that one or two voices of sanity have actually posted
a helpful answer to the question, instead of telling the OP to get lost.

Oct 8 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Michael Rybak | last post by:
hi, everyone. I'm writing a 2-players game that should support network mode. I'm now testing it on 1 PC since I don't have 2. I directly use sockets, and both client and server do...
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
11
by: Timothy Shih | last post by:
Hi, I am having a freezing issue with my application. My application serves several remotable objects, all of which must be initialized before their use. Furthermore, some of them depend on each...
6
by: Ken Allen | last post by:
I am relatively new to .Net and C#, but I hav ebeen programing in other languages and done some COM work for a number of years. I am attempting to understand how to map an older program...
4
by: rs | last post by:
how I the client tell the server that the socket is closed? or this there an even that informs the server that the clients socket is close? Oh, I am using vb.net 2003 Thanks
8
by: Ankit Aneja | last post by:
i am doing here some some socket-client work in C# windows service it is working fine for multiple clients now i want to limit these multiple clients to 25 for example i want that when service...
2
by: J Huntley Palmer | last post by:
I am having a horrific time integrating uw-imap's c-client for imap support in php. The problem is a whole bunch of "Text relocation remains referenced against symbol" errors during linking....
0
by: khu84 | last post by:
Here is client server very simple code, seems to work with telnet but with with web client code gives blank output. Following is the server code:- <?php function...
2
by: nsaffary | last post by:
hi I hava a client/server program that run correctly when i run it in one computer(local) but when I run client on a one computer and run server run on another, connection does not stablish.(I set...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.