cURL / Mailing Lists / curl-library / Single Mail

curl-library

optimizing TYPE in FTP

From: Armel Asselin <asselin.armel_at_wanadoo.fr>
Date: Wed, 9 Aug 2006 22:12:11 +0200

Hello,

I'm currently optimizing the usage of FTP TYPE command (sending the command
only if really changing).
I currently changed SessionHandle::ftp_in_ascii_mode and move it to
FTP::transfer_type (A / I or zero when never set)

in sendf.c:Curl_client_write:381 the ftp_in_ascii_mode was used to know if
conversions should be used. but now this variable is moved in FTP struct,
what is the official way to access the FTP struct?

I used:
data->state.connects[0]->proto.ftp

but i'm pretty sure that it is not perfect.

the TYPE stuff seems to work.

Regards
Armel Asselin
Received on 2006-08-09