Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Dec : Re: FTP replies
| Subject: | Re: FTP replies |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 26 Dec 2006 13:05:03 |
<increditools@gmail.com> wrote in message
news:1167131840.936705.290260@79g2000cws.googlegroups.com...
> For example, after the login process, I want to get all the "230"
> numeric replies to get the account information (quota, for example).
TIdFTP reads all of that information for you. See below.
> Certain FTP server use 230 for this purpose.
>
> I am confuse, when to read the "LastCmdResult".
LastCmdResult() contains only the last reply that was received. It has a
Text property that is a TStrings, in order to handle multi-line replies. In
the case of a login, because Login() sends multiple commands, you will not
have access to all of their replies. Fortunately, TIdFTP does have a
LoginMsg property that contains the result of the actual login before other
commands are then sent afterwards.
Gambit
none