cURL / Mailing Lists / curl-library / Single Mail

curl-library

reading from ftp

From: Nedelcho Stanev <decho_at_iname.com>
Date: Sun, 14 Apr 2002 01:34:02 +0200 (CEST)

Hya all,

I have a simple question ( i hope :)
I need to read from ftp , but easy functions is not ok for me, cuz
they write data to callback, and i want to do something like
openconnection()
while( data )
read( void* buf)
closeconnection()
i mean, that i don't want to start process and work with callbacks, and i
want to read data from ftp chunk-by-chynk, like fread().
Any can expl. how to do this with curl?
Transfer() function doest this, and i can copy part of sorce in
my , but may be some know different way?

Best wishes,
decho
Received on 2002-04-14