Article View: borland.public.cppbuilder.internet.socket
Article #3520Re: TNMFTP Problems
From: Remy Lebeau (TeamB)
Date: Tue, 13 Sep 2005 06:09
Date: Tue, 13 Sep 2005 06:09
22 lines
1943 bytes
1943 bytes
"Thomas Scott" <tscott@magiqueproductions.com> wrote in message news:432656fa$1@newsgroups.borland.com... > I have handler in the OnConnected event to perform the List() function. You cannot do that. The Connect() method performs various operations after connecting to the server. The OnConnected event, however, is triggered before those operations can be performed. By calling List() inside the OnConnected event handler, you are messing up TIdFTP's conversation with the server by causing commands to be sent in the wrong order. You must wait until Connect() exits before doing anything that sends commands to the server. > However, I keep getting an exception that says "530 You aren't logged in." Correct - you aren't logged in. By using the OnConnected event, you are trying to perform operations on the server before TIdFTP's Login() method can be called. Gambit
Technical Details
Message-ID:
<43266ce2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43246364$1@newsgroups.borland.com> <4325b844$1@newsgroups.borland.com> <432656fa$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,eba4b90956be2c6e X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <43246364$1@newsgroups.borland.com> <4325b844$1@newsgroups.borland.com> <432656fa$1@newsgroups.borland.com> Subject: Re: TNMFTP Problems Date: Mon, 12 Sep 2005 23:09:07 -0700 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <43266ce2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1126591714 68.69.17.41 (12 Sep 2005 23:08:34 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail